persistentvolumeclaim

package
v0.18.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StatusStrategy = persistentvolumeclaimStatusStrategy{Strategy}
View Source
var Strategy = persistentvolumeclaimStrategy{api.Scheme, api.SimpleNameGenerator}

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

Functions

func MatchPersistentVolumeClaim

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

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

func PersistentVolumeClaimToSelectableFields

func PersistentVolumeClaimToSelectableFields(persistentvolumeclaim *api.PersistentVolumeClaim) labels.Set

PersistentVolumeClaimToSelectableFields 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 {
	// ListPersistentVolumeClaims obtains a list of PVCs having labels which match selector.
	ListPersistentVolumeClaims(ctx api.Context, selector labels.Selector) (*api.PersistentVolumeClaimList, error)
	// Watch for new/changed/deleted PVCs
	WatchPersistentVolumeClaims(ctx api.Context, label labels.Selector, field fields.Selector, resourceVersion string) (watch.Interface, error)
	// Get a specific PVC
	GetPersistentVolumeClaim(ctx api.Context, pvcID string) (*api.PersistentVolumeClaim, error)
	// Create a PVC based on a specification.
	CreatePersistentVolumeClaim(ctx api.Context, pvc *api.PersistentVolumeClaim) error
	// Update an existing PVC
	UpdatePersistentVolumeClaim(ctx api.Context, pvc *api.PersistentVolumeClaim) error
	// Delete an existing PVC
	DeletePersistentVolumeClaim(ctx api.Context, pvcID string) error
}

Registry is an interface implemented by things that know how to store PersistentVolumeClaim 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