cds

package
v0.0.0-...-d1b2497 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PaymentTimingKey represents payment timing key.
	PaymentTimingKey = "paymentTiming"
	// StorageTypeKey represents cds storage type key.
	StorageTypeKey = "storageType"
	// ReservationLengthKey represents reservation length key.
	ReservationLengthKey = "reservationLength"
	// ReservationTimeUnitKey represents reservation time unit key.
	ReservationTimeUnitKey = "reservationTimeUnit"
)
View Source
const (
	ClusterIDTagKey  = "cce-cluster-id"
	VolumeNameTagKey = "volume-name"
)
View Source
const (
	DevNameKey = "devName"
	SerialKey  = "serial"
)
View Source
const (
	DriverName = "cds.csi.baidubce.com"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver struct {
	csi.ControllerServer
	csi.NodeServer
	// contains filtered or unexported fields
}

func NewDriver

func NewDriver(setOptions ...func(*common.DriverOptions)) (*Driver, error)

func (*Driver) GetPluginInfo

func (d *Driver) GetPluginInfo(ctx context.Context, req *csi.GetPluginInfoRequest) (*csi.GetPluginInfoResponse, error)

func (*Driver) Probe

func (d *Driver) Probe(ctx context.Context, req *csi.ProbeRequest) (*csi.ProbeResponse, error)

func (*Driver) Run

func (d *Driver) Run(endpoint string)

type Mounter

type Mounter interface {
	exec.Interface
	mount.Interface
	common.FileSystem
	GetDevPath(ctx context.Context, serial string) (string, error)
	GetDeviceSize(ctx context.Context, devPath string) (int64, error)
	ResizeFS(ctx context.Context, devPath, volumeID string) error
	GetDeviceNameFromMount(ctx context.Context, path string) (string, int, error)
	FormatAndMount(ctx context.Context, source string, target string, fstype string, options []string) error
}

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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