fileparsing

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetYamlFiles

func GetYamlFiles(directory string, fileRegex *regexp.Regexp) []string

GetYamlFiles gets all YAML files in a directory

func ListChangedFiles added in v0.1.18

func ListChangedFiles(folder1 string, folder2 string) ([]string, time.Duration, error)

ListChangedFiles compares two directories and returns a list of files that have changed. It uses SHA-256 hashes to efficiently detect changes, additions, and modifications. Returns relative file paths of changed files.

Types

type Resource

type Resource struct {
	FileName string
	Yaml     unstructured.Unstructured
	Branch   git.BranchType
}

Resource represents a Kubernetes resource from a YAML file

func ParseYaml

func ParseYaml(dir string, files []string, branch git.BranchType) []Resource

ParseYaml parses YAML files into Resources

Jump to

Keyboard shortcuts

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