Documentation ¶
Index ¶
- Constants
- type Driver
- func (d *Driver) GetPluginCapabilities(ctx context.Context, req *csi.GetPluginCapabilitiesRequest) (*csi.GetPluginCapabilitiesResponse, error)
- func (d *Driver) GetPluginInfo(ctx context.Context, req *csi.GetPluginInfoRequest) (*csi.GetPluginInfoResponse, error)
- func (d *Driver) Probe(ctx context.Context, req *csi.ProbeRequest) (*csi.ProbeResponse, error)
- func (d *Driver) Run(endpoint string)
- type Mounter
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 (*Driver) GetPluginCapabilities ¶
func (d *Driver) GetPluginCapabilities(ctx context.Context, req *csi.GetPluginCapabilitiesRequest) (*csi.GetPluginCapabilitiesResponse, 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)
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 }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.