package etcd
import "k8s.io/kubernetes/pkg/registry/core/controller/etcd"
Index ¶
- func NewREST(opts generic.RESTOptions) (*REST, *StatusREST)
- type ControllerStorage
- type REST
- type ScaleREST
- func (r *ScaleREST) Get(ctx api.Context, name string) (runtime.Object, error)
- func (r *ScaleREST) New() runtime.Object
- func (r *ScaleREST) Update(ctx api.Context, name string, objInfo rest.UpdatedObjectInfo) (runtime.Object, bool, error)
- type StatusREST
Functions ¶
func NewREST ¶
func NewREST(opts generic.RESTOptions) (*REST, *StatusREST)
NewREST returns a RESTStorage object that will work against replication controllers.
Types ¶
type ControllerStorage ¶
type ControllerStorage struct { Controller *REST Status *StatusREST Scale *ScaleREST }
ControllerStorage includes dummy storage for Replication Controllers and for Scale subresource.
func NewStorage ¶
func NewStorage(opts generic.RESTOptions) ControllerStorage
type REST ¶
type ScaleREST ¶
type ScaleREST struct {
// contains filtered or unexported fields
}
func (*ScaleREST) Get ¶
func (*ScaleREST) New ¶
New creates a new Scale object
func (*ScaleREST) Update ¶
func (r *ScaleREST) Update(ctx api.Context, name string, objInfo rest.UpdatedObjectInfo) (runtime.Object, bool, error)
type StatusREST ¶
type StatusREST struct {
// contains filtered or unexported fields
}
StatusREST implements the REST endpoint for changing the status of a replication controller
func (*StatusREST) Get ¶
Get retrieves the object from the storage. It is required to support Patch.
func (*StatusREST) New ¶
func (r *StatusREST) New() runtime.Object
func (*StatusREST) Update ¶
func (r *StatusREST) Update(ctx api.Context, name string, objInfo rest.UpdatedObjectInfo) (runtime.Object, bool, error)
Update alters the status subset of an object.
Source Files ¶
etcd.go
- Version
- v1.5.3
- Published
- Feb 15, 2017
- Platform
- js/wasm
- Imports
- 13 packages
- Last checked
- 4 minutes ago –
Tools for package owners.