Documentation ¶
Index ¶
- func NewREST(registry Registry) apiserver.RESTStorage
- type REST
- func (s *REST) Create(ctx kapi.Context, obj runtime.Object) (<-chan runtime.Object, error)
- func (s *REST) Delete(ctx kapi.Context, id string) (<-chan runtime.Object, 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 (s *REST) Update(ctx kapi.Context, obj runtime.Object) (<-chan runtime.Object, 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 { // ListClients obtains a list of clients that match a selector. ListClients(selector labels.Selector) (*api.ClientList, error) // GetClient retrieves a specific client. GetClient(id string) (*api.Client, error) // CreateClient creates a new client. CreateClient(client *api.Client) error // UpdateClient updates an client. UpdateClient(client *api.Client) error // DeleteClient deletes an client. DeleteClient(id string) error }
Registry is an interface for things that know how to store Client objects.
Click to show internal directories.
Click to hide internal directories.