Documentation ¶
Overview ¶
Package resvol is the volume resource driver
A volume resource is linked to a volume object named <name> in the namespace of the service.
The volume object contains disk and fs resources configured by the <pool> that created it, so the service doesn't have to embed driver keywords that would prevent the service from being run on another cluster with different capabilities.
Access: * rwo Read Write Once * rwx Read Write Many * roo Read Only Once * rox Read Only Many
Index ¶
- Constants
- func New() resource.Driver
- type Metadata
- type Reference
- type SigRoute
- type T
- func (t T) ExposedDevices() device.L
- func (t T) HasMetadata(p naming.Path, k string) bool
- func (t T) Head() string
- func (t T) InstallDataByKind(filter naming.Kind) (bool, error)
- func (t T) Label() string
- func (t T) Manifest() *manifest.T
- func (t T) ProvisionLeaded(ctx context.Context) error
- func (t T) ProvisionLeader(ctx context.Context) error
- func (t T) Provisioned() (provisioned.T, error)
- func (t T) SendSignals() error
- func (t T) Start(ctx context.Context) error
- func (t *T) Status(ctx context.Context) status.T
- func (t T) Stop(ctx context.Context) error
- func (t T) UnprovisionLeaded(ctx context.Context) error
- func (t T) UnprovisionLeader(ctx context.Context) error
- func (t *T) Volume() (object.Vol, error)
Constants ¶
const ( Usage int = iota NoUsage )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Reference ¶
type Reference string
Reference is an element of the Configs and Secrets T field. This type exists to host the parsing functions.
type SigRoute ¶
SigRoute is a relation between a signal number and the id of a resource supporting signaling
type T ¶
type T struct { resource.T Name string `json:"name"` Access string `json:"access"` Pool string `json:"pool"` PoolType string `json:"type"` Size *int64 `json:"size"` Format bool `json:"format"` Configs []string `json:"configs"` Secrets []string `json:"secrets"` Directories []string `json:"directories"` User string `json:"user"` Group string `json:"group"` Perm *os.FileMode `json:"perm"` DirPerm *os.FileMode `json:"dirperm"` Signal string `json:"signal"` Path naming.Path Topology topology.T Nodes []string }
func (T) ExposedDevices ¶
func (T) HasMetadata ¶
HasMetadata returns true if the volume has a configs or secrets reference to <namespace>/<kind>/<name>[/<key>]
func (T) Provisioned ¶
func (t T) Provisioned() (provisioned.T, error)