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

package persistentvolume

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


Package Files

doc.go registry.go rest.go


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

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

func MatchPersistentVolumes Uses

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

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

func PersistentVolumeToSelectableFields Uses

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.

type Registry Uses

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 Uses

func NewRegistry(s rest.StandardStorage) Registry

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



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