Documentation ¶
Index ¶
- func NewREST(isr imagestream.Registry) (*REST, *StatusREST)
- type REST
- func (r *REST) Create(ctx kapi.Context, obj runtime.Object) (runtime.Object, error)
- func (r *REST) Delete(ctx kapi.Context, name string, options *kapi.DeleteOptions) (runtime.Object, error)
- func (r *REST) Get(ctx kapi.Context, name string) (runtime.Object, error)
- func (r *REST) List(ctx kapi.Context, label labels.Selector, field fields.Selector) (runtime.Object, error)
- func (r *REST) New() runtime.Object
- func (r *REST) NewList() runtime.Object
- func (r *REST) Update(ctx kapi.Context, obj runtime.Object) (runtime.Object, bool, error)
- func (r *REST) Watch(ctx kapi.Context, label labels.Selector, field fields.Selector, ...) (watch.Interface, error)
- type Registry
- type StatusREST
- type Storage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewREST ¶
func NewREST(isr imagestream.Registry) (*REST, *StatusREST)
Types ¶
type REST ¶
type REST struct {
// contains filtered or unexported fields
}
func (*REST) Delete ¶
func (r *REST) Delete(ctx kapi.Context, name string, options *kapi.DeleteOptions) (runtime.Object, error)
Delete deletes an existing image repository specified by its ID.
func (*REST) List ¶
func (r *REST) List(ctx kapi.Context, label labels.Selector, field fields.Selector) (runtime.Object, error)
List obtains a list of image repositories with labels that match selector.
type Registry ¶
type Registry interface { // ListImageRepositories obtains a list of image repositories that match a selector. ListImageRepositories(ctx kapi.Context, selector labels.Selector) (*api.ImageRepositoryList, error) // GetImageRepository retrieves a specific image repository. GetImageRepository(ctx kapi.Context, id string) (*api.ImageRepository, error) // CreateImageRepository creates a new image repository. CreateImageRepository(ctx kapi.Context, repo *api.ImageRepository) error // UpdateImageRepository updates an image repository. UpdateImageRepository(ctx kapi.Context, repo *api.ImageRepository) error // UpdateImageRepository updates an image repository's status. UpdateImageRepositoryStatus(ctx kapi.Context, repo *api.ImageRepository) error // DeleteImageRepository deletes an image repository. DeleteImageRepository(ctx kapi.Context, id string) error // WatchImageRepositories watches for new/changed/deleted image repositories. WatchImageRepositories(ctx kapi.Context, label labels.Selector, field fields.Selector, resourceVersion string) (watch.Interface, error) }
Registry is an interface for things that know how to store ImageRepository objects.
type StatusREST ¶ added in v0.4.3
type StatusREST struct {
// contains filtered or unexported fields
}
StatusREST implements the REST endpoint for changing the status of an image repository.
func (*StatusREST) New ¶ added in v0.4.3
func (r *StatusREST) New() runtime.Object
type Storage ¶ added in v0.4.2
type Storage interface { rest.GracefulDeleter rest.Lister rest.Getter rest.Watcher Create(ctx kapi.Context, obj runtime.Object) (runtime.Object, error) Update(ctx kapi.Context, obj runtime.Object) (runtime.Object, bool, error) }
Storage is an interface for a standard REST Storage backend
Click to show internal directories.
Click to hide internal directories.