Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Connection ¶ added in v1.1.1
type Connection interface { GetLvm(ctx context.Context, volGroup string, volumeID string) (string, error) CreateLvm(ctx context.Context, opt *LVMOptions) (string, error) DeleteLvm(ctx context.Context, volGroup string, volumeID string) error CleanPath(ctx context.Context, path string) error Close() error GetNameSpace(ctx context.Context, regionName string, volumeID string) (string, error) CreateNameSpace(ctx context.Context, opt *NameSpaceOptions) (*manager.PmemNameSpace, error) DeleteNameSpace(ctx context.Context, volumeID string) error CreateProjQuotaSubpath(ctx context.Context, pvName, size, rootPath string) (string, string, error) SetSubpathProjQuota(ctx context.Context, quotaSubpath, blockSoftlimit, blockHardlimit, inodeSoftlimit, inodeHardlimit string) (string, error) RemoveProjQuotaSubpath(ctx context.Context, quotaSubpath string) (string, error) CreateLoopDevice(ctx context.Context, pvName, quotaSize string) (string, error) DeleteLoopDevice(ctx context.Context, pvName string) (string, error) }
Connection lvm connection interface
func NewGrpcConnection ¶ added in v1.1.0
func NewGrpcConnection(address string, timeout time.Duration, caCertFile string, clientCertFile string, clientKeyFile string) (Connection, error)
NewGrpcConnection lvm connection
type LVMOptions ¶
type LVMOptions struct { VolumeGroup string `json:"volumeGroup,omitempty"` Name string `json:"name,omitempty"` Size uint64 `json:"size,omitempty"` Tags []string `json:"tags,omitempty"` Striping bool `json:"striping,omitempty"` }
LVMOptions lvm options
type NameSpaceOptions ¶ added in v1.1.0
NameSpaceOptions lvm options
Click to show internal directories.
Click to hide internal directories.