Documentation ¶
Index ¶
- func MatchImageStreamTag(label labels.Selector, field fields.Selector) kstorage.SelectionPredicate
- func SelectableFields(obj *imageapi.ImageStreamTag) fields.Set
- type REST
- func (r *REST) Create(ctx context.Context, obj runtime.Object, ...) (runtime.Object, error)
- func (r *REST) Delete(ctx context.Context, id string, options *metav1.DeleteOptions) (runtime.Object, bool, error)
- func (r *REST) Get(ctx context.Context, id string, options *metav1.GetOptions) (runtime.Object, error)
- func (r *REST) List(ctx context.Context, options *metainternal.ListOptions) (runtime.Object, error)
- func (s *REST) NamespaceScoped() bool
- func (r *REST) New() runtime.Object
- func (r *REST) NewList() runtime.Object
- func (r *REST) ShortNames() []string
- func (r *REST) Update(ctx context.Context, tagName string, objInfo rest.UpdatedObjectInfo, ...) (runtime.Object, bool, error)
- type Strategy
- func (s Strategy) AllowCreateOnUpdate() bool
- func (Strategy) AllowUnconditionalUpdate() bool
- func (Strategy) Canonicalize(obj runtime.Object)
- func (s Strategy) GenerateName(base string) string
- func (s Strategy) NamespaceScoped() bool
- func (s Strategy) PrepareForCreate(ctx context.Context, obj runtime.Object)
- func (s Strategy) PrepareForUpdate(ctx context.Context, obj, old runtime.Object)
- func (s Strategy) Validate(ctx context.Context, obj runtime.Object) field.ErrorList
- func (s Strategy) ValidateUpdate(ctx context.Context, obj, old runtime.Object) field.ErrorList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MatchImageStreamTag ¶
MatchImageStreamTag returns a generic matcher for a given label and field selector.
func SelectableFields ¶
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) Delete ¶
func (r *REST) Delete(ctx context.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 context.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 ¶
func (r *REST) List(ctx context.Context, options *metainternal.ListOptions) (runtime.Object, error)
func (*REST) NamespaceScoped ¶
func (*REST) ShortNames ¶
ShortNames implements the ShortNamesProvider interface. Returns a list of short names for a resource.
func (*REST) Update ¶
func (r *REST) Update(ctx context.Context, tagName string, objInfo rest.UpdatedObjectInfo, createValidation rest.ValidateObjectFunc, updateValidation rest.ValidateObjectUpdateFunc, forceAllowCreate bool, options *metav1.UpdateOptions) (runtime.Object, bool, error)
type Strategy ¶
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 (Strategy) AllowUnconditionalUpdate ¶
func (Strategy) Canonicalize ¶
Canonicalize normalizes the object after validation.