Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Strategy = imageStreamMappingStrategy{kapi.Scheme, kapi.SimpleNameGenerator}
Strategy is the default logic that applies when creating ImageStreamMapping objects via the REST API.
Functions ¶
This section is empty.
Types ¶
type REST ¶
type REST struct {
// contains filtered or unexported fields
}
REST implements the RESTStorage interface in terms of an image registry and image stream registry. It only supports the Create method and is used to simplify adding a new Image and tag to an ImageStream.
func NewREST ¶
func NewREST(imageRegistry image.Registry, imageStreamRegistry imagestream.Registry) *REST
NewREST returns a new REST.
func (*REST) Create ¶
Create registers a new image (if it doesn't exist) and updates the specified ImageStream's tags. If attempts to update the ImageStream fail with a resource conflict, the update will be retried if the newer ImageStream has no tag diffs from the previous state. If tag diffs are detected, the conflict error is returned.
type Registry ¶
type Registry interface { // CreateImageStreamMapping creates a new image stream mapping. CreateImageStreamMapping(ctx kapi.Context, mapping *api.ImageStreamMapping) (*unversioned.Status, error) }
Registry is an interface for things that know how to store ImageStreamMapping objects.
func NewRegistry ¶
NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic.