Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
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 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.
func (*REST) Get ¶
func (r *REST) Get(ctx apirequest.Context, id string, options *metav1.GetOptions) (runtime.Object, error)
Get retrieves an image by ID that has previously been tagged into an image stream. `id` is of the form <repo name>@<image id>.
type Registry ¶
type Registry interface {
GetImageStreamImage(ctx apirequest.Context, nameAndTag string, options *metav1.GetOptions) (*imageapi.ImageStreamImage, error)
}
Registry is an interface for things that know how to store ImageStreamImage objects.
Source Files
¶
- registry.go
- rest.go
Click to show internal directories.
Click to hide internal directories.