Documentation
¶
Index ¶
- func AddSafeguardCRIP()
- func GetManifestFiles(manifestsPath string, opt chartutil.ReleaseOptions) ([]types.ManifestFile, error)
- func GetManifestFilesFromDir(p string) ([]types.ManifestFile, error)
- func GetManifestResults(ctx context.Context, manifestFiles []types.ManifestFile) ([]types.ManifestResult, error)
- func IsDirectory(path string) (bool, error)
- func IsYAML(path string) bool
- type ManifestResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶
IsDirectory determines if a file represented by path is a directory or not
Types ¶
Click to show internal directories.
Click to hide internal directories.