{"modulePath":"github.com/dockerstack/kubernetes","version":"v0.20.1-0.20150627061651-1c0b765df6da","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package persistentvolume\n\n## Variables\n\n```go\nvar StatusStrategy = persistentvolumeStatusStrategy{Strategy}\n```\n\n```go\nvar Strategy = persistentvolumeStrategy{api.Scheme, api.SimpleNameGenerator}\n```\nStrategy is the default logic that applies when creating and updating PersistentVolume objects via the REST API.\n\n## Functions\n\n```go\nfunc MatchPersistentVolumes(label labels.Selector, field fields.Selector) generic.Matcher\n```\nMatchPersistentVolume returns a generic matcher for a given label and field selector.\n\n```go\nfunc PersistentVolumeToSelectableFields(persistentvolume *api.PersistentVolume) labels.Set\n```\nPersistentVolumeToSelectableFields returns a label set that represents the object TODO: fields are not labels, and the validation rules for them do not apply.\n\n## Types\n\n```go\ntype Registry interface {\n\t// ListPersistentVolumes obtains a list of persistentVolumes having labels which match selector.\n\tListPersistentVolumes(ctx api.Context, selector labels.Selector) (*api.PersistentVolumeList, error)\n\t// Watch for new/changed/deleted persistentVolumes\n\tWatchPersistentVolumes(ctx api.Context, label labels.Selector, field fields.Selector, resourceVersion string) (watch.Interface, error)\n\t// Get a specific persistentVolume\n\tGetPersistentVolume(ctx api.Context, persistentVolumeID string) (*api.PersistentVolume, error)\n\t// Create a persistentVolume based on a specification.\n\tCreatePersistentVolume(ctx api.Context, persistentVolume *api.PersistentVolume) error\n\t// Update an existing persistentVolume\n\tUpdatePersistentVolume(ctx api.Context, persistentVolume *api.PersistentVolume) error\n\t// Delete an existing persistentVolume\n\tDeletePersistentVolume(ctx api.Context, persistentVolumeID string) error\n}\n```\nRegistry is an interface implemented by things that know how to store PersistentVolume objects.\n\n```go\nfunc NewRegistry(s rest.StandardStorage) Registry\n```\nNewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic.\n\n","path":"github.com/dockerstack/kubernetes/pkg/registry/persistentvolume","name":"persistentvolume","synopsis":"","isRedistributable":true}
