meta

package
v1.4.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2016 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPodSpec added in v1.3.0

func GetPodSpec(obj runtime.Object) (*kapi.PodSpec, *field.Path, error)

GetPodSpec returns a mutable pod spec out of the provided object, including a field path to the field in the object, or an error if the object does not contain a pod spec.

func HasPodSpec added in v1.3.0

HasPodSpec returns true if the resource is known to have a pod spec.

Types

type ImageReferenceMutateFunc added in v1.3.0

type ImageReferenceMutateFunc func(ref *kapi.ObjectReference) error

ImageReferenceMutateFunc is passed a reference representing an image, and may alter the Name, Kind, and Namespace fields of the reference. If an error is returned the object may still be mutated under the covers.

type ImageReferenceMutator added in v1.3.0

type ImageReferenceMutator interface {
	// Mutate invokes fn on every image reference in the object. If fn returns an error,
	// a field.Error is added to the list to be returned. Mutate does not terminate early
	// if errors are detected.
	Mutate(fn ImageReferenceMutateFunc) field.ErrorList
}

func GetImageReferenceMutator added in v1.3.0

func GetImageReferenceMutator(obj runtime.Object) (ImageReferenceMutator, error)

GetImageReferenceMutator returns a mutator for the provided object, or an error if no such mutator is defined.

Jump to

Keyboard shortcuts

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