Documentation ¶
Overview ¶
Package controller provides Registry interface and it's RESTStorage implementation for storing ReplicationController api objects.
Index ¶
- Variables
- type PodLister
- type REST
- func (rs *REST) Create(ctx api.Context, obj runtime.Object) (runtime.Object, error)
- func (rs *REST) Delete(ctx api.Context, id string) (runtime.Object, error)
- func (rs *REST) Get(ctx api.Context, id string) (runtime.Object, error)
- func (rs *REST) List(ctx api.Context, label labels.Selector, field fields.Selector) (runtime.Object, error)
- func (*REST) New() runtime.Object
- func (*REST) NewList() runtime.Object
- func (rs *REST) Update(ctx api.Context, obj runtime.Object) (runtime.Object, bool, error)
- func (rs *REST) Watch(ctx api.Context, label labels.Selector, field fields.Selector, ...) (watch.Interface, error)
- type Registry
Constants ¶
This section is empty.
Variables ¶
View Source
var Strategy = rcStrategy{api.Scheme, api.SimpleNameGenerator}
Strategy is the default logic that applies when creating and updating Replication Controller objects.
Functions ¶
This section is empty.
Types ¶
type PodLister ¶
type PodLister interface {
ListPods(ctx api.Context, labels labels.Selector) (*api.PodList, error)
}
PodLister is anything that knows how to list pods.
type REST ¶
type REST struct {
// contains filtered or unexported fields
}
REST implements apiserver.RESTStorage for the replication controller service.
func (*REST) Create ¶
Create registers the given ReplicationController with the system, which eventually leads to the controller manager acting on its behalf.
func (*REST) List ¶
func (rs *REST) List(ctx api.Context, label labels.Selector, field fields.Selector) (runtime.Object, error)
List obtains a list of ReplicationControllers that match selector.
type Registry ¶
type Registry interface { ListControllers(ctx api.Context) (*api.ReplicationControllerList, error) WatchControllers(ctx api.Context, label labels.Selector, field fields.Selector, resourceVersion string) (watch.Interface, error) GetController(ctx api.Context, controllerID string) (*api.ReplicationController, error) CreateController(ctx api.Context, controller *api.ReplicationController) (*api.ReplicationController, error) UpdateController(ctx api.Context, controller *api.ReplicationController) (*api.ReplicationController, error) DeleteController(ctx api.Context, controllerID string) error }
Registry is an interface for things that know how to store ReplicationControllers.
Click to show internal directories.
Click to hide internal directories.