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 T
- func (t *T) CanInstall(ctx context.Context) (bool, error)
- func (t *T) Configure() error
- func (t *T) ExposedDevices(ctx context.Context) device.L
- func (t *T) Head() string
- func (t *T) Label(_ context.Context) string
- func (t *T) Manifest() *manifest.T
- func (t *T) PostMove(ctx context.Context, to string) error
- func (t *T) PreMove(ctx context.Context, to string) error
- func (t *T) PreMoveRollback(ctx context.Context, to string) error
- func (t *T) ProvisionAsFollower(ctx context.Context) error
- func (t *T) ProvisionAsLeader(ctx context.Context) error
- func (t *T) Provisioned(ctx context.Context) (provisioned.T, 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) SubDevices(ctx context.Context) device.L
- func (t *T) UnprovisionAsLeader(ctx context.Context) error
- func (t *T) ValidateNodesAndName() error
- func (t *T) Volume() (object.Vol, error)
Constants ¶
View Source
const ( Usage int = iota NoUsage )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type T ¶
type T struct {
resource.T
datarecv.DataRecv
Name string `json:"name"`
Access string `json:"access"`
Pool string `json:"pool"`
PoolType string `json:"type"`
Size *int64 `json:"size"`
Format bool `json:"format"`
VolNodes []string
// Context
Path naming.Path
Topology topology.T
Nodes []string
ObjectParents []string
}
func (*T) Label ¶
Label implements Label from resource.Driver interface, it returns a formatted short description of the Resource
func (*T) Provisioned ¶
func (*T) ValidateNodesAndName ¶
Click to show internal directories.
Click to hide internal directories.