Documentation ¶
Overview ¶
Package binding contains the middle layer logic for bindings. Bindings are objects containing instructions for how a pod ought to be bound to a host. This allows a registry object which supports this action (ApplyBinding) to be served through an apiserver.
Index ¶
- type MockRegistry
- type REST
- func (b *REST) Create(obj runtime.Object) (<-chan runtime.Object, error)
- func (*REST) Delete(id string) (<-chan runtime.Object, error)
- func (*REST) Get(id string) (runtime.Object, error)
- func (*REST) List(selector labels.Selector) (runtime.Object, error)
- func (*REST) New() runtime.Object
- func (b *REST) Update(obj runtime.Object) (<-chan runtime.Object, error)
- type Registry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockRegistry ¶
MockRegistry can be used for testing.
func (MockRegistry) ApplyBinding ¶
func (mr MockRegistry) ApplyBinding(binding *api.Binding) error
type REST ¶
type REST struct {
// contains filtered or unexported fields
}
REST implements the RESTStorage interface for bindings. When bindings are written, it changes the location of the affected pods. This information is eventually reflected in the pod's CurrentState.Host field.
Click to show internal directories.
Click to hide internal directories.