Documentation
¶
Overview ¶
Package build loads manifest paths and executes Kustomize for render plugins. Host inventory and comparison use the passive pkg/render collection instead.
Index ¶
- func WalkPaths(fs filesys.FileSystem, root string, visit func(string) error) error
- type Builder
- func (b *Builder) AddKustomization(fs filesys.FileSystem, path string) error
- func (b *Builder) AddKustomizationWithProducer(fs filesys.FileSystem, path, producer string) error
- func (b *Builder) AddPath(fs filesys.FileSystem, path string) error
- func (b *Builder) AddPathWithProducer(fs filesys.FileSystem, path, producer string) error
- func (b *Builder) AddPaths(fs filesys.FileSystem, root string) error
- func (b *Builder) AddPathsWithProducer(fs filesys.FileSystem, root, producer string) error
- func (b *Builder) SetLocalOnly(root string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Builder ¶
Builder owns path building and the passive collection receiving its results.
func (*Builder) AddKustomization ¶
func (b *Builder) AddKustomization(fs filesys.FileSystem, path string) error
AddKustomization builds a Kustomize directory and records its path provenance.
func (*Builder) AddKustomizationWithProducer ¶
func (b *Builder) AddKustomizationWithProducer(fs filesys.FileSystem, path, producer string) error
AddKustomizationWithProducer builds a directory and records the producer.
func (*Builder) AddPath ¶
func (b *Builder) AddPath(fs filesys.FileSystem, path string) error
AddPath builds a Kustomize directory, or loads its raw YAML manifests.
func (*Builder) AddPathWithProducer ¶
func (b *Builder) AddPathWithProducer(fs filesys.FileSystem, path, producer string) error
AddPathWithProducer loads a path and records its rendering producer.
func (*Builder) AddPaths ¶
func (b *Builder) AddPaths(fs filesys.FileSystem, root string) error
AddPaths recursively loads independent directories, stopping below Kustomize bases.
func (*Builder) AddPathsWithProducer ¶
func (b *Builder) AddPathsWithProducer(fs filesys.FileSystem, root, producer string) error
AddPathsWithProducer recursively builds paths with the supplied producer.
func (*Builder) SetLocalOnly ¶
SetLocalOnly confines subsequent builds and reads to root.