result

package
v1.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 23, 2022 License: MIT Imports: 9 Imported by: 0

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 EnvValues

type EnvValues map[string]string

EnvValues stores data returned from Environment, ConfigMaps or Secrets.

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

func NewFromError(err error) *Result

NewFromError creates a Result given an error.

func (*Result) Write

func (r *Result) Write(writer io.Writer) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL