{"modulePath":"github.phpd.cn/openshift/origin","version":"v4.1.0+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package annotations\n\n## Functions\n\n```go\nfunc ContainerForObjectFieldPath(obj runtime.Object, fieldPath string) (ometa.ContainerMutator, string, error)\n```\nContainerForObjectFieldPath returns a reference to the container in the object with pod spec underneath fieldPath. Returns error if no such container exists or the field path is invalid. Returns the remaining field path beyond the container, if any.\n\n```go\nfunc ContainerImageChanged(oldObj, newObj runtime.Object, newTriggers []triggerapi.ObjectFieldTrigger) bool\n```\nContainerImageChanged returns true if any container image referenced by newTriggers changed.\n\n```go\nfunc NewAnnotationTriggerIndexer(prefix string) trigger.Indexer\n```\nNewAnnotationTriggerIndexer creates an indexer that deals with objects that have a pod spec and use annotations to indicate the desire to trigger.\n\n```go\nfunc UpdateObjectFromImages(obj runtime.Object, tagRetriever trigger.TagRetriever) (runtime.Object, error)\n```\nUpdateObjectFromImages attempts to set the appropriate object information. If changes are necessary, it lazily copies obj and returns it, or if no changes are necessary returns nil.\n\n## Types\n\n```go\ntype AnnotationReactor struct {\n\tUpdater AnnotationUpdater\n}\n```\n\n```go\nfunc (r *AnnotationReactor) ImageChanged(obj runtime.Object, tagRetriever trigger.TagRetriever) error\n```\n\n```go\ntype AnnotationUpdater interface {\n\tUpdate(obj runtime.Object) error\n}\n```\n\n","path":"github.phpd.cn/openshift/origin/pkg/image/trigger/annotations","name":"annotations","synopsis":"","isRedistributable":true}
