Documentation ¶
Index ¶
Constants ¶
View Source
const ( // YAMLExtension yaml YAMLExtension = "yaml" // YAMLExtension2 yml YAMLExtension2 = "yml" // KustomizeFileName kustomization KustomizeFileName = "kustomization" )
Variables ¶
This section is empty.
Functions ¶
func KustomizeFileNames ¶
func KustomizeFileNames() []string
KustomizeFileNames returns the valid extensions for kustomize (yaml, yml)
func LoadIacFile ¶
func LoadIacFile() (allResourcesConfig output.AllResourceConfigs, err error)
LoadIacFile is not supported for kustomize. Only loading directories that have kustomization.y(a)ml file are supported
func LoadKustomize ¶
func LoadKustomize(basepath, filename, version string, useKustomizeBinary bool) ([]*utils.IacDocument, error)
LoadKustomize loads up a 'kustomized' directory and returns a returns a list of IacDocuments
Types ¶
type KustomizeDirectoryLoader ¶
type KustomizeDirectoryLoader struct {
// contains filtered or unexported fields
}
KustomizeDirectoryLoader implements kustomize directory/file loading
func NewKustomizeDirectoryLoader ¶
func NewKustomizeDirectoryLoader(absRootDir string, options map[string]interface{}, useKustomizeBinary bool, version string) KustomizeDirectoryLoader
NewKustomizeDirectoryLoader creates a new kustomizeDirectoryLoader
func (KustomizeDirectoryLoader) LoadIacDir ¶
func (t KustomizeDirectoryLoader) LoadIacDir() (output.AllResourceConfigs, error)
LoadIacDir loads the kustomize directory and returns the ResourceConfig mapping which is evaluated by the policy engine
Click to show internal directories.
Click to hide internal directories.