{"modulePath":"github.phpd.cn/openshift/origin","version":"v4.1.0+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package trigger\n\n## Types\n\n```go\ntype CacheEntry struct {\n\tKey       string\n\tNamespace string\n\tTriggers  []trigger.ObjectFieldTrigger\n}\n```\n\n```go\ntype ImageReactor interface {\n\tImageChanged(obj runtime.Object, tagRetriever TagRetriever) error\n}\n```\n\n```go\ntype Indexer interface {\n\t// Index takes the given pair of objects and turns it into a key and a value. The returned key\n\t// will be used to store the object. obj is set on adds and updates, old is set on deletes and updates.\n\t// Changed should be true if the triggers changed.  Operations is a list of actions that should be sent\n\t// to the reaction.\n\tIndex(obj, old interface{}) (key string, entry *CacheEntry, change cache.DeltaType, err error)\n}\n```\n\n```go\ntype TagRetriever interface {\n\tImageStreamTag(namespace, name string) (ref string, rv int64, ok bool)\n}\n```\nTagRetriever returns information about a tag, including whether it exists and the observed resource version of the object at the time the tag was loaded.\n\n","path":"github.phpd.cn/openshift/origin/pkg/image/trigger","name":"trigger","synopsis":"","isRedistributable":true}
