Documentation ¶
Index ¶
- type CLI
- type FieldVisitor
- type ManifestList
- func (l *ManifestList) Append(buf []byte)
- func (l *ManifestList) CollectNamespaces() ([]string, error)
- func (l *ManifestList) Diff(latest ManifestList) ManifestList
- func (l *ManifestList) GetImages() ([]build.Artifact, error)
- func (l *ManifestList) Reader() io.Reader
- func (l *ManifestList) ReplaceImages(builds []build.Artifact) (ManifestList, error)
- func (l *ManifestList) SetLabels(labels map[string]string) (ManifestList, error)
- func (l *ManifestList) String() string
- func (l *ManifestList) Visit(visitor FieldVisitor) (ManifestList, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CLI ¶
type CLI struct { *pkgkubectl.CLI Flags latest.KubectlFlags ForceDeploy bool // contains filtered or unexported fields }
CLI holds parameters to run kubectl.
func (*CLI) ReadManifests ¶ added in v0.22.0
ReadManifests reads a list of manifests in yaml format.
type FieldVisitor ¶ added in v1.2.0
type FieldVisitor interface { // Visit is called for each transformable key contained in the object and may apply transformations/aggregations on it. // It should return true to allow recursive traversal or false when the entry was transformed. Visit(object map[string]interface{}, key string, value interface{}) bool }
FieldVisitor represents the aggregation/transformation that should be performed on each traversed field.
type ManifestList ¶ added in v0.13.0
type ManifestList [][]byte
ManifestList is a list of yaml manifests.
func (*ManifestList) Append ¶ added in v0.13.0
func (l *ManifestList) Append(buf []byte)
Append appends the yaml manifests defined in the given buffer. `buf` can contain concatenated manifests without `---` separators because `kubectl create --dry-run -oyaml` produces such output.
func (*ManifestList) CollectNamespaces ¶ added in v0.36.0
func (l *ManifestList) CollectNamespaces() ([]string, error)
CollectNamespaces returns all the namespaces in the manifests.
func (*ManifestList) Diff ¶ added in v0.13.0
func (l *ManifestList) Diff(latest ManifestList) ManifestList
Diff computes the list of manifests that have changed.
func (*ManifestList) GetImages ¶ added in v0.36.0
func (l *ManifestList) GetImages() ([]build.Artifact, error)
GetImages gathers a map of base image names to the image with its tag
func (*ManifestList) Reader ¶ added in v0.13.0
func (l *ManifestList) Reader() io.Reader
Reader returns a reader on the raw yaml descriptors.
func (*ManifestList) ReplaceImages ¶ added in v0.13.0
func (l *ManifestList) ReplaceImages(builds []build.Artifact) (ManifestList, error)
ReplaceImages replaces image names in a list of manifests.
func (*ManifestList) SetLabels ¶ added in v0.23.0
func (l *ManifestList) SetLabels(labels map[string]string) (ManifestList, error)
SetLabels add labels to a list of Kubernetes manifests.
func (*ManifestList) String ¶ added in v0.13.0
func (l *ManifestList) String() string
func (*ManifestList) Visit ¶ added in v0.13.0
func (l *ManifestList) Visit(visitor FieldVisitor) (ManifestList, error)
Visit recursively visits all transformable object fields within the manifests and lets the visitor apply transformations/aggregations on them.