Documentation
¶
Index ¶
- Variables
- func New() resource.Driver
- type Config
- type T
- func (t *T) Configure() error
- func (t *T) DriverID() driver.ID
- func (t *T) Info(ctx context.Context) (resource.InfoKeys, error)
- func (t *T) Label(_ context.Context) string
- func (t *T) Manifest() *manifest.T
- func (t *T) Name() string
- func (t *T) Provisioned(ctx context.Context) (provisioned.T, error)
- func (t *T) Resume(ctx context.Context) error
- func (t *T) Resync(ctx context.Context) error
- func (t *T) Split(ctx context.Context) 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) Swap(ctx context.Context) error
- func (t *T) Update(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type Config ¶
type Config struct {
// Method is the connection method: ssh or cli
Method string `json:"method"`
// Manager is the array name or IP address
Manager string `json:"manager"`
// Username for SSH connections
Username string `json:"username,omitempty"`
// Key is the SSH private key file path or datastore reference
Key string `json:"key,omitempty"`
// CLI is the 3PAR CLI binary path or datastore reference
CLI string `json:"cli,omitempty"`
// PWF is the password file for CLI connections or datastore reference
PWF string `json:"pwf,omitempty"`
}
Config holds the array configuration from the cluster config.
type T ¶
type T struct {
resdisk.T
Path naming.Path `json:"path"`
// Array is the suffix of the array configuration section (array#<suffix>).
Array string `json:"array"`
// Group is the name of the HP 3PAR remote copy group.
Group string `json:"group"`
// Mode is the replication mode: "sync" or "async".
Mode string `json:"mode"`
// MaxDelay is the max age of the last sync.
MaxDelay *time.Duration `json:"max_delay"`
// ForceSync trigger a sync before migrate if the group mode is Periodic.
ForceSync bool
// AutoTakeover allows failover when the arrays are split.
AutoTakeover bool
// Allow role swap when the arrays are joined.
SwapRoles bool
// Timeout is the maximum duration to wait for operations to complete.
Timeout *time.Duration `json:"timeout"`
// StartTimeout is the maximum duration to wait for start operations.
StartTimeout *time.Duration `json:"start_timeout"`
// contains filtered or unexported fields
}
T is the driver structure embedding the common disk resource base.
func (*T) Provisioned ¶
Provisioned returns whether the RCG exists.
func (*T) SubDevices ¶
SubDevices returns the list of device files managed by this resource.
Click to show internal directories.
Click to hide internal directories.