Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GraphStructures = []string{string(TreeStructurePackage)}
Functions ¶
Types ¶
type TreeRunner ¶
TreeRunner contains the run function
func GetTreeRunner ¶
func GetTreeRunner(ctx context.Context, name string) *TreeRunner
type TreeStructure ¶
type TreeStructure string
const ( // TreeStructurePackage configures TreeWriter to generate the tree structure off of the // Resources packages. TreeStructurePackage TreeStructure = "directory" // %q holds the package name PkgNameFormat = "Package %q" )
type TreeWriter ¶
type TreeWriter struct { Writer io.Writer Root string Fields []TreeWriterField Structure TreeStructure }
TreeWriter prints the package structured as a tree. TODO(pwittrock): test this package better. it is lower-risk since it is only used for printing rather than updating or editing.
type TreeWriterField ¶
type TreeWriterField struct { yaml.PathMatcher Name string SubName string }
TreeWriterField configures a Resource field to be included in the tree
Click to show internal directories.
Click to hide internal directories.