Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetYamlFiles ¶
GetYamlFiles gets all YAML files in a directory
Types ¶
type Branch ¶
type Branch struct {
Name string
// contains filtered or unexported fields
}
Branch represents a git branch and its local folder
func NewBranch ¶
func NewBranch(name string, branchType BranchType) *Branch
NewBranch creates a new Branch instance
func (*Branch) FolderName ¶
FolderName returns the folder name for the branch
func (*Branch) Type ¶
func (b *Branch) Type() BranchType
type BranchType ¶
type BranchType string
const ( Base BranchType = "base" Target BranchType = "target" )
type K8sResource ¶
type K8sResource struct {
FileName string
Yaml yaml.Node
}
K8sResource represents a Kubernetes resource from a YAML file
func ParseYaml ¶
func ParseYaml(dir string, files []string) []K8sResource
ParseYaml parses YAML files into K8sResources
type Selector ¶
Selector represents a key-value selector with an operator
func FromString ¶
FromString creates a new Selector from a string representation
Click to show internal directories.
Click to hide internal directories.