package
1.14.0-alpha.1
Repository: https://github.com/micnncim/kubernetes.git
Documentation: pkg.go.dev
# Packages
Package env provides functions to incorporate environment variables into set env.
# Functions
CalculatePatch calls the mutation function on the provided info object, and generates a strategic merge patch for the changes in the object.
CalculatePatches calculates patches on each provided info object.
NewCmdEnv implements the OpenShift cli env command.
NewCmdImage returns an initialized Command instance for the 'set image' sub command.
NewCmdResources returns initialized Command instance for the 'set resources' sub command.
NewCmdSelector is the "set selector" command.
NewCmdServiceAccount returns the "set serviceaccount" command.
NewCmdSet returns an initialized Command instance for 'set' sub command.
NewCmdSubject returns the "new subject" sub command.
NewEnvOptions returns an EnvOptions indicating all containers in the selected pod templates are selected by default and allowing environment to be overwritten.
NewImageOptions returns an initialized SetImageOptions instance.
NewResourcesOptions returns a ResourcesOptions indicating all containers in the selected pod templates are selected by default.
NewSelectorOptions returns an initialized SelectorOptions instance.
NewSetServiceAccountOptions returns an initialized SetServiceAccountOptions instance.
NewSubjectOptions returns an initialized SubjectOptions instance.
# Structs
EnvOptions holds values for 'set env' command-lone options.
Patch represents the result of a mutation to an object.
ImageOptions is the start of the data required to perform the operation.
SetResourcesOptions is the start of the data required to perform the operation.
SetSelectorOptions is the start of the data required to perform the operation.
SetServiceAccountOptions encapsulates the data required to perform the operation.
SubjectOptions is the start of the data required to perform the operation.
# Type aliases
ImageResolver is a func that receives an image name, and resolves it to an appropriate / compatible image name.
PatchFn is a function type that accepts an info object and returns a byte slice.