iacprovider

package
v1.19.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDefaultIacVersion

func GetDefaultIacVersion(iacType string) string

GetDefaultIacVersion returns the default IaC version for the given IaC type

func GetProviderIacVersions added in v1.16.0

func GetProviderIacVersions(iacType string) []string

GetProviderIacVersions returns list of Iac Provider versions for the given IaC type

func IsIacSupported

func IsIacSupported(iacType, iacVersion string) bool

IsIacSupported returns true/false depending on whether the IaC provider is supported in terrascan or not

func RegisterIacProvider

func RegisterIacProvider(iacType supportedIacType, iacVersion, defaultIacVersion supportedIacVersion, iacProvider reflect.Type)

RegisterIacProvider registers an IaC provider for terrascan if the Iac provider does not have a version, it can be kept empty

func SupportedIacProviders

func SupportedIacProviders() []string

SupportedIacProviders returns list of Iac Providers supported in terrascan

func SupportedIacVersions

func SupportedIacVersions() []string

SupportedIacVersions returns a string of Iac providers and corresponding supported versions

Types

type IacProvider

type IacProvider interface {
	LoadIacFile(string, map[string]interface{}) (output.AllResourceConfigs, error)
	LoadIacDir(string, map[string]interface{}) (output.AllResourceConfigs, error)
	Name() string
}

IacProvider defines the interface which every IaC provider needs to implement to claim support in terrascan

func NewIacProvider

func NewIacProvider(iacType, iacVersion string) (iacProvider IacProvider, err error)

NewIacProvider returns a new IacProvider

Directories

Path Synopsis
arm
v1
cft
v1
docker
v1
helm
v3
kubernetes
v1
kustomize
v2
v3
v4
terraform
v12
v14
v15
tfplan
v1

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL