package
Version:
v1.2.0-beta.1
Opens a new window with list of versions in this module.
Published: Mar 11, 2016
License: Apache-2.0
Opens a new window with license information.
Imports: 13
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func NewREST(opts generic.RESTOptions) (*REST, *StatusREST)
NewREST returns a RESTStorage object that will work against ReplicaSet.
type REST struct {
*etcdgeneric.Etcd
}
type ReplicaSetStorage struct {
ReplicaSet *REST
Status *StatusREST
Scale *ScaleREST
}
ReplicaSetStorage includes dummy storage for ReplicaSets and for Scale subresource.
func NewStorage(opts generic.RESTOptions) ReplicaSetStorage
type ScaleREST struct {
}
func (r *ScaleREST) Get(ctx api.Context, name string) (runtime.Object, error)
func (r *ScaleREST) New() runtime.Object
New creates a new Scale object
func (r *ScaleREST) Update(ctx api.Context, obj runtime.Object) (runtime.Object, bool, error)
type StatusREST struct {
}
StatusREST implements the REST endpoint for changing the status of a ReplicaSet
func (r *StatusREST) New() runtime.Object
func (r *StatusREST) Update(ctx api.Context, obj runtime.Object) (runtime.Object, bool, error)
Update alters the status subset of an object.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.