persistentvolume

package
v1.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 31, 2015 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StatusStrategy = persistentvolumeStatusStrategy{Strategy}
View Source
var Strategy = persistentvolumeStrategy{api.Scheme, api.SimpleNameGenerator}

Strategy is the default logic that applies when creating and updating PersistentVolume objects via the REST API.

Functions

func MatchPersistentVolumes

func MatchPersistentVolumes(label labels.Selector, field fields.Selector) generic.Matcher

MatchPersistentVolume returns a generic matcher for a given label and field selector.

func PersistentVolumeToSelectableFields

func PersistentVolumeToSelectableFields(persistentvolume *api.PersistentVolume) labels.Set

PersistentVolumeToSelectableFields returns a label set that represents the object TODO: fields are not labels, and the validation rules for them do not apply.

Types

type Registry

type Registry interface {
	// ListPersistentVolumes obtains a list of persistentVolumes having labels which match selector.
	ListPersistentVolumes(ctx api.Context, selector labels.Selector) (*api.PersistentVolumeList, error)
	// Watch for new/changed/deleted persistentVolumes
	WatchPersistentVolumes(ctx api.Context, label labels.Selector, field fields.Selector, resourceVersion string) (watch.Interface, error)
	// Get a specific persistentVolume
	GetPersistentVolume(ctx api.Context, persistentVolumeID string) (*api.PersistentVolume, error)
	// Create a persistentVolume based on a specification.
	CreatePersistentVolume(ctx api.Context, persistentVolume *api.PersistentVolume) error
	// Update an existing persistentVolume
	UpdatePersistentVolume(ctx api.Context, persistentVolume *api.PersistentVolume) error
	// Delete an existing persistentVolume
	DeletePersistentVolume(ctx api.Context, persistentVolumeID string) error
}

Registry is an interface implemented by things that know how to store PersistentVolume objects.

func NewRegistry

func NewRegistry(s rest.StandardStorage) Registry

NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL