Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrMissingResource = errors.New("resource not found")
ErrMissingResource is returned when the resource is not found.
View Source
var ErrMissingWriter = errors.New("missing writer")
ErrMissingWriter is returned when no writer has been set.
Functions ¶
This section is empty.
Types ¶
type Result ¶
type Result struct { Error error Environment EnvValues Secrets map[string]EnvValues ConfigMaps map[string]EnvValues // contains filtered or unexported fields }
Result contains the values of environment variables and names of configmaps and secrets related to a resource.
func NewFromContainers ¶
func NewFromContainers( client kubernetes.Interface, namespace string, shouldExport bool, containers []corev1.Container, ) *Result
NewFromContainers creates a Result given []Container.
func NewFromError ¶
NewFromError creates a Result given an error.
Click to show internal directories.
Click to hide internal directories.