imagestreamtag

package
v3.10.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2018 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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 *imageapi.ImageStreamTag) fields.Set

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

Types

type REST

type REST struct {
	rest.TableConvertor
	// 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, registryWhitelister whitelist.RegistryWhitelister) *REST

NewREST returns a new REST.

func (*REST) Create added in v1.3.0

func (r *REST) Create(ctx apirequest.Context, obj runtime.Object, createValidation rest.ValidateObjectFunc, _ bool) (runtime.Object, error)

func (*REST) Delete

func (r *REST) Delete(ctx apirequest.Context, id string, options *metav1.DeleteOptions) (runtime.Object, bool, 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 is removed.

func (*REST) Get

func (r *REST) Get(ctx apirequest.Context, id string, options *metav1.GetOptions) (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 apirequest.Context, options *metainternal.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) ShortNames

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

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

func (*REST) Update added in v1.0.8

func (r *REST) Update(ctx apirequest.Context, tagName string, objInfo rest.UpdatedObjectInfo, createValidation rest.ValidateObjectFunc, updateValidation rest.ValidateObjectUpdateFunc) (runtime.Object, bool, error)

type Strategy added in v1.0.8

type Strategy struct {
	runtime.ObjectTyper
	// contains filtered or unexported fields
}

Strategy implements behavior for ImageStreamTags.

func NewStrategy

func NewStrategy(registryWhitelister whitelist.RegistryWhitelister) Strategy

NewStrategy is the default logic that applies when creating and updating ImageStreamTag objects via the REST API.

func (Strategy) AllowCreateOnUpdate

func (s Strategy) AllowCreateOnUpdate() bool

func (Strategy) AllowUnconditionalUpdate

func (Strategy) AllowUnconditionalUpdate() bool

func (Strategy) Canonicalize

func (Strategy) Canonicalize(obj runtime.Object)

Canonicalize normalizes the object after validation.

func (Strategy) GenerateName

func (s Strategy) GenerateName(base string) string

func (Strategy) NamespaceScoped

func (s Strategy) NamespaceScoped() bool

func (Strategy) PrepareForCreate

func (s Strategy) PrepareForCreate(ctx apirequest.Context, obj runtime.Object)

func (Strategy) PrepareForUpdate

func (s Strategy) PrepareForUpdate(ctx apirequest.Context, obj, old runtime.Object)

func (Strategy) Validate

func (s Strategy) Validate(ctx apirequest.Context, obj runtime.Object) field.ErrorList

func (Strategy) ValidateUpdate

func (s Strategy) ValidateUpdate(ctx apirequest.Context, obj, old runtime.Object) field.ErrorList

Jump to

Keyboard shortcuts

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