trigger

package
v3.6.136-1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2017 License: Apache-2.0 Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheEntry

type CacheEntry struct {
	Key       string
	Namespace string
	Triggers  []trigger.ObjectFieldTrigger
}

type ImageReactor

type ImageReactor interface {
	ImageChanged(obj interface{}, tagRetriever TagRetriever) error
}

type Indexer

type Indexer interface {
	// Index takes the given pair of objects and turns it into a key and a value. The returned key
	// will be used to store the object. obj is set on adds and updates, old is set on deletes and updates.
	// Changed should be true if the triggers changed.  Operations is a list of actions that should be sent
	// to the reaction.
	Index(obj, old interface{}) (key string, entry *CacheEntry, change cache.DeltaType, err error)
}

type TagRetriever

type TagRetriever interface {
	ImageStreamTag(namespace, name string) (ref string, rv int64, ok bool)
}

TagRetriever returns information about a tag, including whether it exists and the observed resource version of the object at the time the tag was loaded.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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