Help us shape the future of Go! Take the 2026 Go Developer Survey

safeguards

package
v0.17.16 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddSafeguardCRIP

func AddSafeguardCRIP()

adds Safeguard_CRIP to full list of Safeguards

func GetManifestFiles

func GetManifestFiles(manifestsPath string, opt chartutil.ReleaseOptions) ([]types.ManifestFile, error)

Given a path, will determine if it's Kustomize, Helm, a directory of manifests, or a single manifest

func GetManifestFilesFromDir added in v0.17.0

func GetManifestFilesFromDir(p string) ([]types.ManifestFile, error)

GetManifestFilesFromDir uses filepath.Walk to retrieve a list of the manifest files within a directory of .yaml files

func GetManifestResults

func GetManifestResults(ctx context.Context, manifestFiles []types.ManifestFile) ([]types.ManifestResult, error)

GetManifestResults takes in a list of manifest files and returns a slice of ManifestViolation structs

func IsDirectory

func IsDirectory(path string) (bool, error)

IsDirectory determines if a file represented by path is a directory or not

func IsYAML

func IsYAML(path string) bool

IsYAML determines if a file is of the YAML extension or not

Types

type ManifestResult

type ManifestResult struct {
	Name             string              // the name of the manifest
	ObjectViolations map[string][]string // a map of string object names to slice of string objectViolations
	ViolationsCount  int                 // a count of how many violations are associated with this manifest
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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