Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection interface { GetVolume(ctx context.Context, volGroup string, volumeID string) (*remotelib.LogicalVolume, error) CreateVolume(ctx context.Context, opt *VolOptions) (string, error) DeleteVolume(ctx context.Context, volGroup string, volumeID string) error CreateSnapshot(ctx context.Context, vgName string, snapshotName string, srcVolumeName string) (int64, error) DeleteSnapshot(ctx context.Context, volGroup string, snapVolumeID string) error ExpandVolume(ctx context.Context, volGroup string, volumeID string, size uint64) error Close() error }
Connection lvm connection interface
func NewGrpcConnection ¶
func NewGrpcConnection(address string, timeout time.Duration) (Connection, error)
NewGrpcConnection lvm connection
type VolOptions ¶
type VolOptions struct { VolumeGroup string `json:"volumeGroup,omitempty"` Name string `json:"name,omitempty"` Size uint64 `json:"size,omitempty"` Tags []string `json:"tags,omitempty"` CloneName string `json:"cloneName,omitempty"` SnapshotName string `json:"snapshotName,omitempty"` }
VolOptions lvm options
Click to show internal directories.
Click to hide internal directories.