{"modulePath":"github.com/akram/Origin","version":"v3.11.0+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package internalversion\n\n## Functions\n\n```go\nfunc GetPodSpec(obj runtime.Object) (*kapi.PodSpec, *field.Path, error)\n```\nGetPodSpec 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. This only returns internal objects.\n\n```go\nfunc GetPodSpecV1(obj runtime.Object) (*kapiv1.PodSpec, *field.Path, error)\n```\nGetPodSpecV1 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. This only returns pod specs for v1 compatible objects.\n\n```go\nfunc GetTemplateMetaObject(obj runtime.Object) (metav1.Object, bool)\n```\nGetTemplateMetaObject returns a mutable metav1.Object interface for the template the object contains, or false if no such object is available.\n\n## Types\n\n```go\ntype AnnotationAccessor interface {\n\t// Annotations returns a map representing annotations. Not mutable.\n\tAnnotations() map[string]string\n\t// SetAnnotations sets representing annotations onto the object.\n\tSetAnnotations(map[string]string)\n\t// TemplateAnnotations returns a map representing annotations on a nested template in the object. Not mutable.\n\t// If no template is present bool will be false.\n\tTemplateAnnotations() (map[string]string, bool)\n\t// SetTemplateAnnotations sets annotations on a nested template in the object.\n\t// If no template is present bool will be false.\n\tSetTemplateAnnotations(map[string]string) bool\n}\n```\n\n```go\nfunc GetAnnotationAccessor(obj runtime.Object) (AnnotationAccessor, bool)\n```\nGetAnnotationAccessor returns an accessor for the provided object or false if the object does not support accessing annotations.\n\n```go\ntype ContainerMutator interface {\n\tGetName() string\n\tGetImage() string\n\tSetImage(image string)\n}\n```\n\n```go\ntype ImageReferenceMutateFunc func(ref *kapi.ObjectReference) error\n```\nImageReferenceMutateFunc 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.\n\n```go\ntype ImageReferenceMutator interface {\n\t// Mutate invokes fn on every image reference in the object. If fn returns an error,\n\t// a field.Error is added to the list to be returned. Mutate does not terminate early\n\t// if errors are detected.\n\tMutate(fn ImageReferenceMutateFunc) field.ErrorList\n}\n```\n\n```go\nfunc GetImageReferenceMutator(obj, old runtime.Object) (ImageReferenceMutator, error)\n```\nGetImageReferenceMutator returns a mutator for the provided object, or an error if no such mutator is defined. Only references that are different between obj and old will be returned unless old is nil.\n\n```go\nfunc NewBuildMutator(build *buildapi.Build) ImageReferenceMutator\n```\nNewBuildMutator returns an ImageReferenceMutator that includes the output field.\n\n```go\ntype PodSpecReferenceMutator interface {\n\tGetContainerByIndex(init bool, i int) (ContainerMutator, bool)\n\tGetContainerByName(name string) (ContainerMutator, bool)\n\tPath() *field.Path\n}\n```\n\n```go\nfunc GetPodSpecReferenceMutator(obj runtime.Object) (PodSpecReferenceMutator, error)\n```\nGetPodSpecReferenceMutator returns a mutator for the provided object, or an error if no such mutator is defined.\n\n","path":"github.com/akram/Origin/pkg/api/imagereferencemutators/internalversion","name":"internalversion","synopsis":"","isRedistributable":true}
