Documentation ¶
Index ¶
- Constants
- type Cli
- func (c *Cli) CreateAccess(accessto, accesscapability, fname string) error
- func (c *Cli) CreateDirectory(dirName string) error
- func (c *Cli) CreateFileShare(lvPath string) error
- func (c *Cli) CreateFileShareFromSnapshot(lvPath string) error
- func (c *Cli) CreateLvSnapshot(name, sourceLvName, vg string, size int64) error
- func (c *Cli) CreateVolume(name string, vg string, size int64) error
- func (c *Cli) Delete(name, lvpath string) error
- func (c *Cli) DeleteAccess(accessto, fname string) error
- func (c *Cli) DeleteDirectory(dirName string) error
- func (c *Cli) DeleteFileShareSnapshots(name, vg string) error
- func (c *Cli) Exists(name string) bool
- func (c *Cli) GetExportLocation(share_name, ip string) string
- func (c *Cli) ListVgs() (*[]VolumeGroup, error)
- func (c *Cli) LvIsActivate(name, vg string) bool
- func (c *Cli) Mount(lvPath, dirName string) error
- func (c *Cli) SetPermission(dirName string) error
- func (c *Cli) UnMount(dirName string) error
- type Driver
- func (d *Driver) CreateFileShare(opt *pb.CreateFileShareOpts) (*model.FileShareSpec, error)
- func (d *Driver) CreateFileShareAcl(opt *pb.CreateFileShareAclOpts) (*model.FileShareAclSpec, error)
- func (d *Driver) CreateFileShareSnapshot(opt *pb.CreateFileShareSnapshotOpts) (*model.FileShareSnapshotSpec, error)
- func (d *Driver) DeleteFileShare(opt *pb.DeleteFileShareOpts) error
- func (d *Driver) DeleteFileShareAcl(opt *pb.DeleteFileShareAclOpts) error
- func (d *Driver) DeleteFileShareSnapshot(opt *pb.DeleteFileShareSnapshotOpts) error
- func (d *Driver) ListPools() ([]*model.StoragePoolSpec, error)
- func (d *Driver) Setup() error
- func (*Driver) Unset() error
- type NFSConfig
- type VolumeGroup
Constants ¶
View Source
const ( KLvPath = "lvPath" KLvsPath = "lvsPath" AccessLevelRo = "ro" AccessLevelRw = "rw" MountPath = "/mnt" )
View Source
const (
)Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cli ¶
type Cli struct { // Command executer BaseExecuter exec.Executer // Command Root executer RootExecuter exec.Executer }
func (*Cli) CreateAccess ¶
func (*Cli) CreateDirectory ¶
func (*Cli) CreateFileShare ¶
func (*Cli) CreateFileShareFromSnapshot ¶ added in v0.12.0
func (*Cli) CreateLvSnapshot ¶
func (*Cli) DeleteAccess ¶
func (*Cli) DeleteDirectory ¶
func (*Cli) DeleteFileShareSnapshots ¶
delete volume or snapshot
func (*Cli) GetExportLocation ¶
func (*Cli) ListVgs ¶
func (c *Cli) ListVgs() (*[]VolumeGroup, error)
func (*Cli) LvIsActivate ¶
func (*Cli) SetPermission ¶
type Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
func (*Driver) CreateFileShare ¶
func (d *Driver) CreateFileShare(opt *pb.CreateFileShareOpts) (*model.FileShareSpec, error)
func (*Driver) CreateFileShareAcl ¶
func (d *Driver) CreateFileShareAcl(opt *pb.CreateFileShareAclOpts) (*model.FileShareAclSpec, error)
func (*Driver) CreateFileShareSnapshot ¶
func (d *Driver) CreateFileShareSnapshot(opt *pb.CreateFileShareSnapshotOpts) (*model.FileShareSnapshotSpec, error)
CreateFileShareSnapshot
func (*Driver) DeleteFileShare ¶
func (d *Driver) DeleteFileShare(opt *pb.DeleteFileShareOpts) error
delete fileshare from device
func (*Driver) DeleteFileShareAcl ¶
func (d *Driver) DeleteFileShareAcl(opt *pb.DeleteFileShareAclOpts) error
func (*Driver) DeleteFileShareSnapshot ¶
func (d *Driver) DeleteFileShareSnapshot(opt *pb.DeleteFileShareSnapshotOpts) error
DeleteFileShareSnapshot
Click to show internal directories.
Click to hide internal directories.