Documentation ¶
Index ¶
- func NewREST(imageRegistry image.Registry, imageRepositoryRegistry imagerepository.Registry) apiserver.RESTStorage
- type REST
- func (s *REST) Create(ctx kapi.Context, obj runtime.Object) (<-chan apiserver.RESTResult, error)
- func (s *REST) Delete(ctx kapi.Context, id string) (<-chan apiserver.RESTResult, error)
- func (s *REST) Get(ctx kapi.Context, id string) (runtime.Object, error)
- func (s *REST) List(ctx kapi.Context, selector, fields labels.Selector) (runtime.Object, error)
- func (s *REST) New() runtime.Object
- func (*REST) NewList() runtime.Object
- func (s *REST) Update(ctx kapi.Context, obj runtime.Object) (<-chan apiserver.RESTResult, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewREST ¶
func NewREST(imageRegistry image.Registry, imageRepositoryRegistry imagerepository.Registry) apiserver.RESTStorage
NewREST returns a new REST.
Types ¶
type REST ¶
type REST struct {
// contains filtered or unexported fields
}
REST implements the RESTStorage interface in terms of an Registry and Registry. It Only supports the Create method and is used to simply adding a new Image and tag to an ImageRepository.
func (*REST) Create ¶
Create registers a new image (if it doesn't exist) and updates the specified ImageRepository's tags.
Click to show internal directories.
Click to hide internal directories.