Documentation ¶
Overview ¶
Package deploy provides Registry interface and its RESTStorage implementation for storing Deployment api objects.
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, label, field 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 ¶
func NewREST ¶
func NewREST(registry Registry) apiserver.RESTStorage
NewREST creates a new REST backed by the given registry.
Types ¶
type REST ¶
type REST struct {
// contains filtered or unexported fields
}
REST is an implementation of RESTStorage for the api server.
type Registry ¶
type Registry interface { ListDeployments(ctx kapi.Context, label, field labels.Selector) (*deployapi.DeploymentList, error) GetDeployment(ctx kapi.Context, id string) (*deployapi.Deployment, error) CreateDeployment(ctx kapi.Context, deployment *deployapi.Deployment) error UpdateDeployment(ctx kapi.Context, deployment *deployapi.Deployment) error DeleteDeployment(ctx kapi.Context, id string) error WatchDeployments(ctx kapi.Context, label, field labels.Selector, resourceVersion string) (watch.Interface, error) }
Registry is an interface for things that know how to store Deployments.
Click to show internal directories.
Click to hide internal directories.