Documentation
¶
Index ¶
- Constants
- type ClusterInfo
- type Config
- type Driver
- func (d *Driver) CreateFileShare(opt *pb.CreateFileShareOpts) (fshare *FileShareSpec, err error)
- func (d *Driver) CreateFileShareAcl(opts *pb.CreateFileShareAclOpts) (*FileShareAclSpec, error)
- func (d *Driver) CreateFileShareSnapshot(opts *pb.CreateFileShareSnapshotOpts) (*FileShareSnapshotSpec, error)
- func (d *Driver) DeleteFileShare(opts *pb.DeleteFileShareOpts) error
- func (d *Driver) DeleteFileShareAcl(opts *pb.DeleteFileShareAclOpts) error
- func (d *Driver) DeleteFileShareSnapshot(opts *pb.DeleteFileShareSnapshotOpts) error
- func (d *Driver) ListPools() ([]*StoragePoolSpec, error)
- func (d *Driver) Setup() error
- func (d *Driver) Unset() error
- type RequestType
- type RuntimeEnv
Constants ¶
View Source
const ( DefaultConfPath = "/etc/opensds/driver/chubaofs.yaml" NamePrefix = "chubaofs" )
View Source
const ( KMountPoint = "mountPoint" KVolumeName = "volName" KMasterAddr = "masterAddr" KLogDir = "logDir" KWarnLogDir = "warnLogDir" KLogLevel = "logLevel" KOwner = "owner" KProfPort = "profPort" )
View Source
const (
KClientPath = "clientPath"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterInfo ¶
type Config ¶
type Config struct { ClusterInfo `yaml:"clusterInfo"` RuntimeEnv `yaml:"runtimeEnv"` Pool map[string]PoolProperties `yaml:"pool,flow"` }
type Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
func (*Driver) CreateFileShare ¶
func (d *Driver) CreateFileShare(opt *pb.CreateFileShareOpts) (fshare *FileShareSpec, err error)
func (*Driver) CreateFileShareAcl ¶
func (d *Driver) CreateFileShareAcl(opts *pb.CreateFileShareAclOpts) (*FileShareAclSpec, error)
func (*Driver) CreateFileShareSnapshot ¶
func (d *Driver) CreateFileShareSnapshot(opts *pb.CreateFileShareSnapshotOpts) (*FileShareSnapshotSpec, error)
func (*Driver) DeleteFileShare ¶
func (d *Driver) DeleteFileShare(opts *pb.DeleteFileShareOpts) error
func (*Driver) DeleteFileShareAcl ¶
func (d *Driver) DeleteFileShareAcl(opts *pb.DeleteFileShareAclOpts) error
func (*Driver) DeleteFileShareSnapshot ¶
func (d *Driver) DeleteFileShareSnapshot(opts *pb.DeleteFileShareSnapshotOpts) error
type RequestType ¶
type RequestType int
func (RequestType) String ¶
func (t RequestType) String() string
Click to show internal directories.
Click to hide internal directories.