Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustRunThisWhenTest ¶ added in v0.6.0
func MustRunThisWhenTest()
Types ¶
type Connection ¶
type Connection interface { GetVolume(ctx context.Context, volGroup string, volumeID string) (string, error) CreateVolume(ctx context.Context, opt *LVMOptions) (string, error) DeleteVolume(ctx context.Context, volGroup string, volumeID string) error CreateSnapshot(ctx context.Context, volGroup string, snapVolumeID string, volumeID string, size uint64) (string, error) DeleteSnapshot(ctx context.Context, volGroup string, snapVolumeID string) error ExpandVolume(ctx context.Context, volGroup string, volumeID string, size uint64) error CleanPath(ctx context.Context, path string) error CleanDevice(ctx context.Context, device string) error Close() error }
Connection lvm connection interface
func NewGrpcConnection ¶
func NewGrpcConnection(address string, timeout time.Duration) (Connection, error)
NewGrpcConnection lvm connection
Click to show internal directories.
Click to hide internal directories.