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

fileparsing

package
v0.2.17 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 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