Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 Get method and is used to retrieve an image by id, scoped to an ImageStream. REST ensures that the requested image belongs to the specified ImageStream.
func NewREST ¶
func NewREST(imageRegistry image.Registry, imageStreamRegistry imagestream.Registry) *REST
NewREST returns a new REST.
type Registry ¶ added in v0.5.1
type Registry interface {
GetImageStreamImage(ctx kapi.Context, nameAndTag string) (*api.ImageStreamImage, error)
}
Registry is an interface for things that know how to store ImageStreamImage objects.
func NewRegistry ¶ added in v0.5.1
NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic.
Click to show internal directories.
Click to hide internal directories.