package etcd

import "k8s.io/kubernetes/pkg/registry/deployment/etcd"

Index

Functions

func NewREST

func NewREST(s storage.Interface) (*REST, *StatusREST)

NewREST returns a RESTStorage object that will work against deployments.

Types

type DeploymentStorage

type DeploymentStorage struct {
	Deployment *REST
	Status     *StatusREST
	Scale      *ScaleREST
}

DeploymentStorage includes dummy storage for Deployments and for Scale subresource.

func NewStorage

func NewStorage(s storage.Interface) DeploymentStorage

type REST

type REST struct {
	*etcdgeneric.Etcd
}

type ScaleREST

type ScaleREST struct {
	// contains filtered or unexported fields
}

func (*ScaleREST) Get

func (r *ScaleREST) Get(ctx api.Context, name string) (runtime.Object, error)

func (*ScaleREST) New

func (r *ScaleREST) New() runtime.Object

New creates a new Scale object

func (*ScaleREST) Update

func (r *ScaleREST) Update(ctx api.Context, obj runtime.Object) (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 deployment

func (*StatusREST) New

func (r *StatusREST) New() runtime.Object

func (*StatusREST) Update

func (r *StatusREST) Update(ctx api.Context, obj runtime.Object) (runtime.Object, bool, error)

Update alters the status subset of an object.

Source Files

etcd.go

Version
v1.2.0-alpha.3
Published
Nov 3, 2015
Platform
js/wasm
Imports
12 packages
Last checked
13 minutes ago

Tools for package owners.