Documentation ¶
Index ¶
- Variables
- func GetVersionJSON() string
- func MarshalJSON(v interface{}) string
- func MountDatasets(helper helper.DriverHelper, req *csi.NodePublishVolumeRequest, ...) (int, error)
- func ReconcileDatasets(helper helper.DriverHelper, vmtDetails common.VolumeMountDetails, ...) (int, error)
- func UnMountDatasets(helper helper.DriverHelper, req *csi.NodeUnpublishVolumeRequest)
- type COSDriver
- func (driver *COSDriver) ControllerExpandVolume(ctx context.Context, req *csi.ControllerExpandVolumeRequest) (*csi.ControllerExpandVolumeResponse, error)
- func (driver *COSDriver) ControllerGetCapabilities(ctx context.Context, req *csi.ControllerGetCapabilitiesRequest) (*csi.ControllerGetCapabilitiesResponse, error)
- func (driver *COSDriver) ControllerGetVolume(ctx context.Context, req *csi.ControllerGetVolumeRequest) (*csi.ControllerGetVolumeResponse, error)
- func (driver *COSDriver) ControllerPublishVolume(ctx context.Context, req *csi.ControllerPublishVolumeRequest) (*csi.ControllerPublishVolumeResponse, error)
- func (driver *COSDriver) ControllerUnpublishVolume(ctx context.Context, req *csi.ControllerUnpublishVolumeRequest) (*csi.ControllerUnpublishVolumeResponse, error)
- func (driver *COSDriver) CreateSnapshot(ctx context.Context, req *csi.CreateSnapshotRequest) (*csi.CreateSnapshotResponse, error)
- func (driver *COSDriver) CreateVolume(ctx context.Context, req *csi.CreateVolumeRequest) (*csi.CreateVolumeResponse, error)
- func (driver *COSDriver) DeleteSnapshot(ctx context.Context, req *csi.DeleteSnapshotRequest) (*csi.DeleteSnapshotResponse, error)
- func (driver *COSDriver) DeleteVolume(ctx context.Context, req *csi.DeleteVolumeRequest) (*csi.DeleteVolumeResponse, error)
- func (driver *COSDriver) GetCapacity(ctx context.Context, req *csi.GetCapacityRequest) (*csi.GetCapacityResponse, error)
- func (driver *COSDriver) GetPluginCapabilities(ctx context.Context, req *csi.GetPluginCapabilitiesRequest) (*csi.GetPluginCapabilitiesResponse, error)
- func (driver *COSDriver) GetPluginInfo(ctx context.Context, req *csi.GetPluginInfoRequest) (*csi.GetPluginInfoResponse, error)
- func (driver *COSDriver) ListSnapshots(ctx context.Context, req *csi.ListSnapshotsRequest) (*csi.ListSnapshotsResponse, error)
- func (driver *COSDriver) ListVolumes(ctx context.Context, req *csi.ListVolumesRequest) (*csi.ListVolumesResponse, error)
- func (driver *COSDriver) NodeExpandVolume(ctx context.Context, req *csi.NodeExpandVolumeRequest) (*csi.NodeExpandVolumeResponse, error)
- func (driver *COSDriver) NodeGetCapabilities(ctx context.Context, req *csi.NodeGetCapabilitiesRequest) (*csi.NodeGetCapabilitiesResponse, error)
- func (driver *COSDriver) NodeGetInfo(ctx context.Context, req *csi.NodeGetInfoRequest) (*csi.NodeGetInfoResponse, error)
- func (driver *COSDriver) NodeGetVolumeStats(ctx context.Context, req *csi.NodeGetVolumeStatsRequest) (*csi.NodeGetVolumeStatsResponse, error)
- func (driver *COSDriver) NodePublishVolume(ctx context.Context, req *csi.NodePublishVolumeRequest) (*csi.NodePublishVolumeResponse, error)
- func (driver *COSDriver) NodeStageVolume(ctx context.Context, req *csi.NodeStageVolumeRequest) (*csi.NodeStageVolumeResponse, error)
- func (driver *COSDriver) NodeUnpublishVolume(ctx context.Context, req *csi.NodeUnpublishVolumeRequest) (response *csi.NodeUnpublishVolumeResponse, err error)
- func (driver *COSDriver) NodeUnstageVolume(ctx context.Context, req *csi.NodeUnstageVolumeRequest) (*csi.NodeUnstageVolumeResponse, error)
- func (driver *COSDriver) Probe(ctx context.Context, req *csi.ProbeRequest) (*csi.ProbeResponse, error)
- func (driver *COSDriver) Run() error
- func (driver *COSDriver) ValidateVolumeCapabilities(ctx context.Context, req *csi.ValidateVolumeCapabilitiesRequest) (*csi.ValidateVolumeCapabilitiesResponse, error)
- type ReconcileContext
- type VersionInfo
Constants ¶
This section is empty.
Variables ¶
var (
DriverVersion string
)
Functions ¶
func MarshalJSON ¶
func MarshalJSON(v interface{}) string
func MountDatasets ¶
func MountDatasets(helper helper.DriverHelper, req *csi.NodePublishVolumeRequest, vmtDetails common.VolumeMountDetails) (int, error)
func ReconcileDatasets ¶
func ReconcileDatasets(helper helper.DriverHelper, vmtDetails common.VolumeMountDetails, targetPath string) (int, error)
func UnMountDatasets ¶
func UnMountDatasets(helper helper.DriverHelper, req *csi.NodeUnpublishVolumeRequest)
UnMountDatasets unmount datasets at target path
Types ¶
type COSDriver ¶
type COSDriver struct {
// contains filtered or unexported fields
}
COSDriver data structure
func NewCOSDriver ¶
NewCOSDriver returns a new instance of COS driver
func (*COSDriver) ControllerExpandVolume ¶
func (driver *COSDriver) ControllerExpandVolume(ctx context.Context, req *csi.ControllerExpandVolumeRequest) (*csi.ControllerExpandVolumeResponse, error)
ControllerExpandVolume ...
func (*COSDriver) ControllerGetCapabilities ¶
func (driver *COSDriver) ControllerGetCapabilities(ctx context.Context, req *csi.ControllerGetCapabilitiesRequest) (*csi.ControllerGetCapabilitiesResponse, error)
ControllerGetCapabilities ...
func (*COSDriver) ControllerGetVolume ¶
func (driver *COSDriver) ControllerGetVolume(ctx context.Context, req *csi.ControllerGetVolumeRequest) (*csi.ControllerGetVolumeResponse, error)
ControllerGetVolume ...
func (*COSDriver) ControllerPublishVolume ¶
func (driver *COSDriver) ControllerPublishVolume(ctx context.Context, req *csi.ControllerPublishVolumeRequest) (*csi.ControllerPublishVolumeResponse, error)
ControllerPublishVolume ...
func (*COSDriver) ControllerUnpublishVolume ¶
func (driver *COSDriver) ControllerUnpublishVolume(ctx context.Context, req *csi.ControllerUnpublishVolumeRequest) (*csi.ControllerUnpublishVolumeResponse, error)
ControllerUnpublishVolume ...
func (*COSDriver) CreateSnapshot ¶
func (driver *COSDriver) CreateSnapshot(ctx context.Context, req *csi.CreateSnapshotRequest) (*csi.CreateSnapshotResponse, error)
CreateSnapshot ...
func (*COSDriver) CreateVolume ¶
func (driver *COSDriver) CreateVolume(ctx context.Context, req *csi.CreateVolumeRequest) (*csi.CreateVolumeResponse, error)
CreateVolume ...
func (*COSDriver) DeleteSnapshot ¶
func (driver *COSDriver) DeleteSnapshot(ctx context.Context, req *csi.DeleteSnapshotRequest) (*csi.DeleteSnapshotResponse, error)
DeleteSnapshot ...
func (*COSDriver) DeleteVolume ¶
func (driver *COSDriver) DeleteVolume(ctx context.Context, req *csi.DeleteVolumeRequest) (*csi.DeleteVolumeResponse, error)
DeleteVolume ...
func (*COSDriver) GetCapacity ¶
func (driver *COSDriver) GetCapacity(ctx context.Context, req *csi.GetCapacityRequest) (*csi.GetCapacityResponse, error)
GetCapacity ...
func (*COSDriver) GetPluginCapabilities ¶
func (driver *COSDriver) GetPluginCapabilities(ctx context.Context, req *csi.GetPluginCapabilitiesRequest) (*csi.GetPluginCapabilitiesResponse, error)
GetPluginCapabilities ...
func (*COSDriver) GetPluginInfo ¶
func (driver *COSDriver) GetPluginInfo(ctx context.Context, req *csi.GetPluginInfoRequest) (*csi.GetPluginInfoResponse, error)
GetPluginInfo ...
func (*COSDriver) ListSnapshots ¶
func (driver *COSDriver) ListSnapshots(ctx context.Context, req *csi.ListSnapshotsRequest) (*csi.ListSnapshotsResponse, error)
ListSnapshots ...
func (*COSDriver) ListVolumes ¶
func (driver *COSDriver) ListVolumes(ctx context.Context, req *csi.ListVolumesRequest) (*csi.ListVolumesResponse, error)
ListVolumes ...
func (*COSDriver) NodeExpandVolume ¶
func (driver *COSDriver) NodeExpandVolume(ctx context.Context, req *csi.NodeExpandVolumeRequest) (*csi.NodeExpandVolumeResponse, error)
NodeExpandVolume ...
func (*COSDriver) NodeGetCapabilities ¶
func (driver *COSDriver) NodeGetCapabilities(ctx context.Context, req *csi.NodeGetCapabilitiesRequest) (*csi.NodeGetCapabilitiesResponse, error)
NodeGetCapabilities ...
func (*COSDriver) NodeGetInfo ¶
func (driver *COSDriver) NodeGetInfo(ctx context.Context, req *csi.NodeGetInfoRequest) (*csi.NodeGetInfoResponse, error)
NodeGetInfo ...
func (*COSDriver) NodeGetVolumeStats ¶
func (driver *COSDriver) NodeGetVolumeStats(ctx context.Context, req *csi.NodeGetVolumeStatsRequest) (*csi.NodeGetVolumeStatsResponse, error)
NodeGetVolumeStats ...
func (*COSDriver) NodePublishVolume ¶
func (driver *COSDriver) NodePublishVolume(ctx context.Context, req *csi.NodePublishVolumeRequest) (*csi.NodePublishVolumeResponse, error)
NodePublishVolume ...
func (*COSDriver) NodeStageVolume ¶
func (driver *COSDriver) NodeStageVolume(ctx context.Context, req *csi.NodeStageVolumeRequest) (*csi.NodeStageVolumeResponse, error)
NodeStageVolume ...
func (*COSDriver) NodeUnpublishVolume ¶
func (driver *COSDriver) NodeUnpublishVolume(ctx context.Context, req *csi.NodeUnpublishVolumeRequest) (response *csi.NodeUnpublishVolumeResponse, err error)
NodeUnpublishVolume ...
func (*COSDriver) NodeUnstageVolume ¶
func (driver *COSDriver) NodeUnstageVolume(ctx context.Context, req *csi.NodeUnstageVolumeRequest) (*csi.NodeUnstageVolumeResponse, error)
NodeUnstageVolume ...
func (*COSDriver) Probe ¶
func (driver *COSDriver) Probe(ctx context.Context, req *csi.ProbeRequest) (*csi.ProbeResponse, error)
Probe ...
func (*COSDriver) ValidateVolumeCapabilities ¶
func (driver *COSDriver) ValidateVolumeCapabilities(ctx context.Context, req *csi.ValidateVolumeCapabilitiesRequest) (*csi.ValidateVolumeCapabilitiesResponse, error)
ValidateVolumeCapabilities ...
type ReconcileContext ¶
type ReconcileContext struct {
// contains filtered or unexported fields
}
ReconcileContext data structure
func NewReconcileContext ¶
func NewReconcileContext(driver *COSDriver) (*ReconcileContext, error)
func (*ReconcileContext) StartInformers ¶
func (rc *ReconcileContext) StartInformers(stopCh <-chan struct{})