pov

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ZONEID                       = "zoneid"
	DATAREDUNDANCYTYPE           = "dataredundancytype"
	PROTOCOLTYPE                 = "protocoltype"
	STORAGETYPE                  = "storagetype"
	FILESYSTEMNAME               = "filesystemname"
	SPACECAPACITY                = "spacecapacity"
	THROUGHPUTMODE               = "throughputmode"
	PROVISIONEDTHROUGHPUTINMIBPS = "provisionedthroughputinmibps"
	FILESYSTEMID                 = "filesystemid"
	TopologyKey                  = "topology.kubernetes.io/region"
)
View Source
const (
	DriverName = "povplugin.csi.alibabacloud.com"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Cloud

type Cloud interface {
	CreateVolume(ctx context.Context, volumeName string, diskOptions *PovOptions) (fsId, requestID string, err error)
	DeleteVolume(ctx context.Context, volumeName string) (reuqestID string, err error)
	CreateVolumeMountPoint(ctx context.Context, filesystemID string) (mpId string, err error)
	AttachVscMountPoint(ctx context.Context, mpId, fsId, instanceID string) (requestID string, err error)
	DescribeVscMountPoints(ctx context.Context, fsId, mpId string) (dvmpr *dfs.DescribeVscMountPointsResponse, err error)
	DetachVscMountPoint(ctx context.Context, mpId, filesystemID, instanceID string) (requestID string, err error)
}

type GlobalConfig

type GlobalConfig struct {
	// contains filtered or unexported fields
}
var GlobalConfigVar GlobalConfig

type MPInstance

type MPInstance struct {
	InstanceId string
	Status     PovStatus
	Vscs       []*Vsc
}

type PoV

type PoV struct {
	// contains filtered or unexported fields
}

Pangu Over Virtio

func NewDriver

func NewDriver(meta *metadata.Metadata, endpoint string, serviceType utils.ServiceType) *PoV

func (*PoV) Run

func (p *PoV) Run()

Run start pov driver service

type PovOptions

type PovOptions struct {
	// contains filtered or unexported fields
}

type PovStatus

type PovStatus int
const (
	NORMAL   PovStatus = iota // NORMAL = 0
	CREATING                  // CREATING = 1
	INVALID                   // INVALID = 2
)

func (PovStatus) String

func (vs PovStatus) String() string

type Vsc

type Vsc struct {
	Id     string
	Status PovStatus
	Type   string
}

type VscMountPoint

type VscMountPoint struct {
	MountPointId       string
	InstanceTotalCount int
	MountPointInstance []*MPInstance
}

type VscMountPointResp

type VscMountPointResp struct {
	RequestID   string
	TotalCount  string
	MountPoints []*VscMountPoint
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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