Documentation ¶
Index ¶
- func GetDefaultIacVersion(iacType string) string
- func GetProviderIacVersions(iacType string) []string
- func IsIacSupported(iacType, iacVersion string) bool
- func RegisterIacProvider(iacType supportedIacType, iacVersion, defaultIacVersion supportedIacVersion, ...)
- func SupportedIacProviders() []string
- func SupportedIacVersions() []string
- type IacProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDefaultIacVersion ¶
GetDefaultIacVersion returns the default IaC version for the given IaC type
func GetProviderIacVersions ¶ added in v1.16.0
GetProviderIacVersions returns list of Iac Provider versions for the given IaC type
func IsIacSupported ¶
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