chubaofs

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: 19 Imported by: 0

Documentation

Index

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 ClusterInfo struct {
	Name           string   `yaml:"name"`
	MasterAddr     []string `yaml:"masterAddr"`
	VolumeCapLimit int64    `yaml:"volumeCapLimit"`
}

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

func (*Driver) ListPools

func (d *Driver) ListPools() ([]*StoragePoolSpec, error)

func (*Driver) Setup

func (d *Driver) Setup() error

func (*Driver) Unset

func (d *Driver) Unset() error

type RequestType

type RequestType int

func (RequestType) String

func (t RequestType) String() string

type RuntimeEnv

type RuntimeEnv struct {
	MntPoint   string `yaml:"mntPoint"`
	ClientPath string `yaml:"clientPath"`
	LogLevel   string `yaml:"logLevel"`
	Owner      string `yaml:"owner"`
	ProfPort   string `yaml:"profPort"`
}

Jump to

Keyboard shortcuts

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