package etcd

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

Index

Functions

func NewStorage

func NewStorage(h tools.EtcdHelper) (*REST, *StatusREST)

NewREST returns a RESTStorage object that will work against PersistentVolume objects.

Types

type REST

type REST struct {
	*etcdgeneric.Etcd
}

rest implements a RESTStorage for persistentvolumes against etcd

type StatusREST

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

StatusREST implements the REST endpoint for changing the status of a persistentvolume.

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
v0.15.0
Published
Apr 13, 2015
Platform
linux/amd64
Imports
8 packages
Last checked
2 minutes ago

Tools for package owners.