Documentation ¶
Index ¶
- func NewREST(registry 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)
- func (s *REST) Watch(ctx kapi.Context, label, field labels.Selector, resourceVersion string) (watch.Interface, error)
- type Registry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type REST ¶
type REST struct {
// contains filtered or unexported fields
}
REST implements the RESTStorage interface in terms of an Registry.
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) // WatchImageRepositories watches for new/changed/deleted image repositories. WatchImageRepositories(ctx kapi.Context, label, field labels.Selector, resourceVersion string) (watch.Interface, 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 // DeleteImageRepository deletes an image repository. DeleteImageRepository(ctx kapi.Context, id string) error }
Registry is an interface for things that know how to store ImageRepository objects.
Click to show internal directories.
Click to hide internal directories.