Documentation
¶
Index ¶
- func NewREST(registry Registry) apiserver.RESTStorage
- type REST
- func (s *REST) Create(obj runtime.Object) (<-chan runtime.Object, error)
- func (s *REST) Delete(id string) (<-chan runtime.Object, error)
- func (s *REST) Get(id string) (runtime.Object, error)
- func (s *REST) List(selector, fields labels.Selector) (runtime.Object, error)
- func (s *REST) New() runtime.Object
- func (s *REST) Update(obj runtime.Object) (<-chan runtime.Object, error)
- type Registry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewREST ¶
func NewREST(registry Registry) apiserver.RESTStorage
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 {
ListDeploymentConfigs(selector labels.Selector) (*api.DeploymentConfigList, error)
GetDeploymentConfig(id string) (*api.DeploymentConfig, error)
CreateDeploymentConfig(deploymentConfig *api.DeploymentConfig) error
UpdateDeploymentConfig(deploymentConfig *api.DeploymentConfig) error
DeleteDeploymentConfig(id string) error
}
Registry is an interface for things that know how to store DeploymentConfigs
Click to show internal directories.
Click to hide internal directories.