Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Graph ¶
type Graph struct { ApiVersion string `json:"apiVersion"` Kind string `json:"kind"` FileName string `json:"fileName"` Resources []*Graph `json:"resources"` Patches map[int]*Graph }
Graph represents a node that is a customization file or resource file
func BuildGraph ¶
BuildGraph recursively explores the specified directory, builds a dependency tree, and returns it
func BuildGraphFromDir ¶
func BuildGraphFromDir(ctx file.Context, rootPath string, directoryPath string, kustomizationFile file.KustomizationFile, parentNodesPtr *map[string]*Graph, childNodesPtr *map[string]*Graph, resourceNodesPtr *map[string]*Graph, patchID *int) (*Graph, error)
BuildGraphFromDir builds and returns a dependency tree from a kustomization file under the specified directory
Click to show internal directories.
Click to hide internal directories.