Documentation ¶
Index ¶
- Constants
- type AuthOptions
- type Config
- type Driver
- func (d *Driver) CreateFileShare(opt *pb.CreateFileShareOpts) (*model.FileShareSpec, error)
- func (d *Driver) CreateFileShareAcl(opt *pb.CreateFileShareAclOpts) (fshare *model.FileShareAclSpec, err 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) PullFileShare(ID string) (*model.FileShareSpec, error)
- func (d *Driver) PullFileShareSnapshot(ID string) (*model.FileShareSnapshotSpec, error)
- func (d *Driver) Setup() error
- func (d *Driver) Unset() error
Constants ¶
View Source
const ( // KManilaSnapID is the UUID of the share snapshot in mannila. KManilaSnapID = "manilaSnapId" KManilaShareACLID = "manilaAclId" )KManilaShareID = "manilaShareID"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthOptions ¶
type AuthOptions struct { IdentityEndpoint string `yaml:"endpoint,omitempty"` DomainID string `yaml:"domainId,omitempty"` DomainName string `yaml:"domainName,omitempty"` Username string `yaml:"username,omitempty"` Password string `yaml:"password,omitempty"` PwdEncrypter string `yaml:"pwdEncrypter,omitempty"` EnableEncrypted bool `yaml:"enableEncrypted,omitempty"` TenantID string `yaml:"tenantId,omitempty"` TenantName string `yaml:"tenantName,omitempty"` }
AuthOptions corresponds to the authentication configuration in manila.yaml
type Config ¶
type Config struct { AuthOptions `yaml:"authOptions"` Pool map[string]driverConfig.PoolProperties `yaml:"pool,flow"` }
Config is a struct for parsing manila.yaml
type Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
Driver is a struct of manila backend.
func (*Driver) CreateFileShare ¶
func (d *Driver) CreateFileShare(opt *pb.CreateFileShareOpts) (*model.FileShareSpec, error)
CreateFileShare implementation
func (*Driver) CreateFileShareAcl ¶
func (d *Driver) CreateFileShareAcl(opt *pb.CreateFileShareAclOpts) (fshare *model.FileShareAclSpec, err error)
CreateFileShareAcl implementation
func (*Driver) CreateFileShareSnapshot ¶
func (d *Driver) CreateFileShareSnapshot(opt *pb.CreateFileShareSnapshotOpts) (*model.FileShareSnapshotSpec, error)
CreateFileShareSnapshot implementation
func (*Driver) DeleteFileShare ¶
func (d *Driver) DeleteFileShare(opt *pb.DeleteFileShareOpts) error
DeleteFileShare implementation
func (*Driver) DeleteFileShareAcl ¶
func (d *Driver) DeleteFileShareAcl(opt *pb.DeleteFileShareAclOpts) error
DeleteFileShareAcl implementation
func (*Driver) DeleteFileShareSnapshot ¶
func (d *Driver) DeleteFileShareSnapshot(opt *pb.DeleteFileShareSnapshotOpts) error
DeleteFileShareSnapshot implementation
func (*Driver) ListPools ¶
func (d *Driver) ListPools() ([]*model.StoragePoolSpec, error)
ListPools implementation
func (*Driver) PullFileShare ¶
func (d *Driver) PullFileShare(ID string) (*model.FileShareSpec, error)
PullFileShare implementation
func (*Driver) PullFileShareSnapshot ¶
func (d *Driver) PullFileShareSnapshot(ID string) (*model.FileShareSnapshotSpec, error)
PullFileShareSnapshot implementation
Click to show internal directories.
Click to hide internal directories.