imagestreamimage

package
v3.11.17-1+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2018 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type REST

type REST struct {
	rest.TableConvertor
	// 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 context.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>.

func (*REST) NamespaceScoped

func (s *REST) NamespaceScoped() bool

func (*REST) New

func (r *REST) New() runtime.Object

New is only implemented to make REST implement RESTStorage

func (*REST) ShortNames

func (r *REST) ShortNames() []string

ShortNames implements the ShortNamesProvider interface. Returns a list of short names for a resource.

Jump to

Keyboard shortcuts

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