imagestreamtag

package
Version: v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2017 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Strategy = &strategy{
	ObjectTyper: kapi.Scheme,
}

Functions

func MatchImageStreamTag added in v1.0.8

func MatchImageStreamTag(label labels.Selector, field fields.Selector) kstorage.SelectionPredicate

MatchImageStreamTag returns a generic matcher for a given label and field selector.

func SelectableFields added in v1.4.0

func SelectableFields(obj *api.ImageStreamTag) fields.Set

SelectableFields returns a field set that can be used for filter selection

Types

type REST

type REST struct {
	// contains filtered or unexported fields
}

REST implements the RESTStorage interface for ImageStreamTag It only supports the Get method and is used to simplify retrieving an Image by tag from an ImageStream

func NewREST

func NewREST(imageRegistry image.Registry, imageStreamRegistry imagestream.Registry) *REST

NewREST returns a new REST.

func (*REST) Create added in v1.3.0

func (r *REST) Create(ctx kapi.Context, obj runtime.Object) (runtime.Object, error)

func (*REST) Delete

func (r *REST) Delete(ctx kapi.Context, id string) (runtime.Object, error)

Delete removes a tag from a stream. `id` is of the format <stream name>:<tag>. The associated image that the tag points to is *not* deleted. The tag history remains intact and is not deleted.

func (*REST) Get

func (r *REST) Get(ctx kapi.Context, id string) (runtime.Object, error)

Get retrieves an image that has been tagged by stream and tag. `id` is of the format <stream name>:<tag>.

func (*REST) List added in v1.0.8

func (r *REST) List(ctx kapi.Context, options *kapi.ListOptions) (runtime.Object, error)

func (*REST) New

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

New is only implemented to make REST implement RESTStorage

func (*REST) NewList added in v1.0.8

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

NewList returns a new list object

func (*REST) Update added in v1.0.8

func (r *REST) Update(ctx kapi.Context, tagName string, objInfo rest.UpdatedObjectInfo) (runtime.Object, bool, error)

type Registry

type Registry interface {
	GetImageStreamTag(ctx kapi.Context, nameAndTag string) (*api.ImageStreamTag, error)
	DeleteImageStreamTag(ctx kapi.Context, nameAndTag string) (*unversioned.Status, error)
}

Registry is an interface for things that know how to store ImageStreamTag objects.

func NewRegistry

func NewRegistry(s Storage) Registry

NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic.

type Storage

type Storage interface {
	rest.Deleter
	rest.Getter
}

Storage is an interface for a standard REST Storage backend

Jump to

Keyboard shortcuts

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