manila

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// KManilaShareID is the UUID of the share in mannila.
	KManilaShareID = "manilaShareID"
	// KManilaSnapID is the UUID of the share snapshot in mannila.
	KManilaSnapID = "manilaSnapId"
	// KManilaShareACLID is the UUID of the share acl in mannila.
	KManilaShareACLID = "manilaAclId"
)

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

func (*Driver) Setup

func (d *Driver) Setup() error

Setup implementation

func (*Driver) Unset

func (d *Driver) Unset() error

Unset implementation

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL