kubernetes: github.com/erimatnor/kubernetes/pkg/registry/persistentvolumeclaim Index | Files | Directories

package persistentvolumeclaim

import "github.com/erimatnor/kubernetes/pkg/registry/persistentvolumeclaim"

Index

Package Files

doc.go registry.go rest.go

Variables

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

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

func MatchPersistentVolumeClaim Uses

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

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

func PersistentVolumeClaimToSelectableFields Uses

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.

type Registry Uses

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 Uses

func NewRegistry(s rest.StandardStorage) Registry

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

Directories

PathSynopsis
etcd

Package persistentvolumeclaim imports 10 packages (graph). Updated 2017-05-11. Refresh now. Tools for package owners.