Documentation ¶
Index ¶
- Variables
- func ImageStreamToSelectableFields(target *api.ImageStreamTag) labels.Set
- func MatchImageStreamTag(label labels.Selector, field fields.Selector) generic.Matcher
- type REST
- func (r *REST) Create(ctx kapi.Context, obj runtime.Object) (runtime.Object, error)
- func (r *REST) Delete(ctx kapi.Context, id string) (runtime.Object, error)
- func (r *REST) Get(ctx kapi.Context, id string) (runtime.Object, error)
- func (r *REST) List(ctx kapi.Context, options *kapi.ListOptions) (runtime.Object, error)
- func (r *REST) New() runtime.Object
- func (r *REST) NewList() runtime.Object
- func (r *REST) Update(ctx kapi.Context, tagName string, objInfo rest.UpdatedObjectInfo) (runtime.Object, bool, error)
- type Registry
- type Storage
Constants ¶
This section is empty.
Variables ¶
var Strategy = &strategy{ ObjectTyper: kapi.Scheme, }
Functions ¶
func ImageStreamToSelectableFields ¶ added in v1.0.8
func ImageStreamToSelectableFields(target *api.ImageStreamTag) labels.Set
ImageStreamToSelectableFields returns a label set that represents the object.
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) Delete ¶
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 ¶
Get retrieves an image that has been tagged by stream and tag. `id` is of the format <stream name>:<tag>.
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 ¶
NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic.