commons

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: 13 Imported by: 0

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

LoadIacDir loads the kustomize directory and returns the ResourceConfig mapping which is evaluated by the policy engine

Jump to

Keyboard shortcuts

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