Documentation
¶
Index ¶
- Constants
- Variables
- func NewServer(endpoint, authStrategy, storageType string) (plugin.Service, error)
- type AttachmentObj
- type FileShare
- func (f *FileShare) ControllerPublishFileShare(req *csi.ControllerPublishVolumeRequest) (*csi.ControllerPublishVolumeResponse, error)
- func (f *FileShare) ControllerUnpublishFileShare(req *csi.ControllerUnpublishVolumeRequest) (*csi.ControllerUnpublishVolumeResponse, error)
- func (f *FileShare) CreateFileShare(req *csi.CreateVolumeRequest) (*csi.CreateVolumeResponse, error)
- func (f *FileShare) DeleteFileShare(shareID string) (*csi.DeleteVolumeResponse, error)
- func (f *FileShare) FindFileshare(fileshareName string) (*model.FileShareSpec, error)
- func (f *FileShare) ListFileShares(req *csi.ListVolumesRequest) (*csi.ListVolumesResponse, error)
- func (f *FileShare) NodePublishFileShare(req *csi.NodePublishVolumeRequest) (*csi.NodePublishVolumeResponse, error)
- func (f *FileShare) NodeStageFileShare(req *csi.NodeStageVolumeRequest) (*csi.NodeStageVolumeResponse, error)
- func (f *FileShare) NodeUnpublishFileShare(req *csi.NodeUnpublishVolumeRequest) (*csi.NodeUnpublishVolumeResponse, error)
- func (f *FileShare) NodeUnstageFileShare(req *csi.NodeUnstageVolumeRequest) (*csi.NodeUnstageVolumeResponse, error)
- type Plugin
- func (p *Plugin) ControllerGetCapabilities(ctx context.Context, req *csi.ControllerGetCapabilitiesRequest) (*csi.ControllerGetCapabilitiesResponse, error)
- func (p *Plugin) ControllerPublishVolume(ctx context.Context, req *csi.ControllerPublishVolumeRequest) (*csi.ControllerPublishVolumeResponse, error)
- func (p *Plugin) ControllerUnpublishVolume(ctx context.Context, req *csi.ControllerUnpublishVolumeRequest) (*csi.ControllerUnpublishVolumeResponse, error)
- func (p *Plugin) CreateSnapshot(ctx context.Context, req *csi.CreateSnapshotRequest) (*csi.CreateSnapshotResponse, error)
- func (p *Plugin) CreateVolume(ctx context.Context, req *csi.CreateVolumeRequest) (*csi.CreateVolumeResponse, error)
- func (p *Plugin) DeleteSnapshot(ctx context.Context, req *csi.DeleteSnapshotRequest) (*csi.DeleteSnapshotResponse, error)
- func (p *Plugin) DeleteVolume(ctx context.Context, req *csi.DeleteVolumeRequest) (*csi.DeleteVolumeResponse, error)
- func (p *Plugin) FindSnapshot(req *model.VolumeSnapshotSpec) (bool, bool, *model.VolumeSnapshotSpec, error)
- func (p *Plugin) GetCapacity(ctx context.Context, req *csi.GetCapacityRequest) (*csi.GetCapacityResponse, error)
- func (p *Plugin) GetPluginCapabilities(ctx context.Context, req *csi.GetPluginCapabilitiesRequest) (*csi.GetPluginCapabilitiesResponse, error)
- func (p *Plugin) GetPluginInfo(ctx context.Context, req *csi.GetPluginInfoRequest) (*csi.GetPluginInfoResponse, error)
- func (p *Plugin) ListSnapshots(ctx context.Context, req *csi.ListSnapshotsRequest) (*csi.ListSnapshotsResponse, error)
- func (p *Plugin) ListVolumes(ctx context.Context, req *csi.ListVolumesRequest) (*csi.ListVolumesResponse, error)
- func (p *Plugin) NodeGetCapabilities(ctx context.Context, req *csi.NodeGetCapabilitiesRequest) (*csi.NodeGetCapabilitiesResponse, error)
- func (p *Plugin) NodeGetInfo(ctx context.Context, req *csi.NodeGetInfoRequest) (*csi.NodeGetInfoResponse, error)
- func (p *Plugin) NodeGetVolumeStats(ctx context.Context, req *csi.NodeGetVolumeStatsRequest) (*csi.NodeGetVolumeStatsResponse, error)
- func (p *Plugin) NodePublishVolume(ctx context.Context, req *csi.NodePublishVolumeRequest) (*csi.NodePublishVolumeResponse, error)
- func (p *Plugin) NodeStageVolume(ctx context.Context, req *csi.NodeStageVolumeRequest) (*csi.NodeStageVolumeResponse, error)
- func (p *Plugin) NodeUnpublishVolume(ctx context.Context, req *csi.NodeUnpublishVolumeRequest) (*csi.NodeUnpublishVolumeResponse, error)
- func (p *Plugin) NodeUnstageVolume(ctx context.Context, req *csi.NodeUnstageVolumeRequest) (*csi.NodeUnstageVolumeResponse, error)
- func (p *Plugin) Probe(ctx context.Context, req *csi.ProbeRequest) (*csi.ProbeResponse, error)
- func (p *Plugin) UnpublishRoutine()
- func (p *Plugin) ValidateVolumeCapabilities(ctx context.Context, req *csi.ValidateVolumeCapabilitiesRequest) (*csi.ValidateVolumeCapabilitiesResponse, error)
- type Volume
- func (v *Volume) ControllerPublishVolume(req *csi.ControllerPublishVolumeRequest) (*csi.ControllerPublishVolumeResponse, error)
- func (v *Volume) ControllerUnpublishVolume(req *csi.ControllerUnpublishVolumeRequest) (*csi.ControllerUnpublishVolumeResponse, error)
- func (v *Volume) CreateVolume(req *csi.CreateVolumeRequest) (*csi.CreateVolumeResponse, error)
- func (v *Volume) DeleteVolume(volId string) (*csi.DeleteVolumeResponse, error)
- func (v *Volume) FindVolume(volName string) (*model.VolumeSpec, error)
- func (v *Volume) ListVolumes(req *csi.ListVolumesRequest) (*csi.ListVolumesResponse, error)
- func (v *Volume) NodePublishVolume(req *csi.NodePublishVolumeRequest) (*csi.NodePublishVolumeResponse, error)
- func (v *Volume) NodeStageVolume(req *csi.NodeStageVolumeRequest) (*csi.NodeStageVolumeResponse, error)
- func (v *Volume) NodeUnpublishVolume(req *csi.NodeUnpublishVolumeRequest) (*csi.NodeUnpublishVolumeResponse, error)
- func (v *Volume) NodeUnstageVolume(req *csi.NodeUnstageVolumeRequest) (*csi.NodeUnstageVolumeResponse, error)
Constants ¶
const ( ParamProfile = "profile" ParamEnableReplication = "enableReplication" ParamSecondaryAZ = "secondaryAvailabilityZone" )
K8s storage class parameter keywords
const ( VolumeName = "name" VolumeStatus = "status" VolumeAZ = "availabilityZone" VolumePoolId = "poolId" VolumeProfileId = "profileId" VolumeLvPath = "lvPath" VolumeReplicationId = "replicationId" StorageType = "storageType" )
CSI volume attribute keywords
const ( PublishHostIp = "hostIp" PublishHostName = "hostName" PublishAttachId = "attachmentId" PublishSecondaryAttachId = "secondaryAttachmentId" PublishAttachStatus = "attachmentStatus" PublishAttachMode = "attachMode" )
CSI publish attribute keywords
const ( TargetPath = "targetPath" StagingTargetPath = "stagingTargetPath" )
Opensds Attachment metadata keywords
const ( AttachedVolumeId = "attachedVolumeId" AttachedId = "attachedId" )
Opensds replication metadata keywords
const ( // default filesystem type DefFSType = "ext4" DefaultAvailabilityZone = "default" )
const ( // parameters CSIVolumeMode = "CSIVolumeMode" // CSIVolumeMode = Filesystem CSIFilesystem = "Filesystem" // CSIVolumeMode = Block CSIBlock = "Block" )
Csi configuration parameters and values
const ( NFS = "nfs" IpIdx = 2 ExportLocations = "exportLocations" )
fileshare constant parameters
const ( FakeIQN = "fakeIqn" PluginName = "csi-opensdsplugin" )
PluginName setting
const (
)const SecondaryPrefix = "secondary-"
volume prefix
const (
VolumeStorageType = "block"
)
Variables ¶
var TopologyZoneKey = "topology." + PluginName + "/zone"
Functions ¶
Types ¶
type AttachmentObj ¶ added in v0.5.1
type AttachmentObj struct {
// contains filtered or unexported fields
}
AttachmentObj implementation
var UnpublishAttachmentList *AttachmentObj
UnpublishAttachmentList implementation
func (*AttachmentObj) Add ¶ added in v0.5.1
func (q *AttachmentObj) Add(v interface{})
Add implementation
func (*AttachmentObj) Delete ¶ added in v0.5.1
func (q *AttachmentObj) Delete(e *list.Element)
Delete implementation
func (*AttachmentObj) GetHead ¶ added in v0.5.1
func (q *AttachmentObj) GetHead() *list.Element
GetHead implementation
func (*AttachmentObj) GetLen ¶ added in v0.5.1
func (q *AttachmentObj) GetLen() int
GetLen implementation
func (*AttachmentObj) PrintList ¶ added in v0.5.1
func (q *AttachmentObj) PrintList(storageType string)
PrintList implementation
type FileShare ¶ added in v0.5.5
type FileShare struct {
}func NewFileshare ¶ added in v0.5.5
func (*FileShare) ControllerPublishFileShare ¶ added in v0.5.5
func (f *FileShare) ControllerPublishFileShare(req *csi.ControllerPublishVolumeRequest) (*csi.ControllerPublishVolumeResponse, error)
func (*FileShare) ControllerUnpublishFileShare ¶ added in v0.5.5
func (f *FileShare) ControllerUnpublishFileShare(req *csi.ControllerUnpublishVolumeRequest) (*csi.ControllerUnpublishVolumeResponse, error)
func (*FileShare) CreateFileShare ¶ added in v0.5.5
func (f *FileShare) CreateFileShare(req *csi.CreateVolumeRequest) (*csi.CreateVolumeResponse, error)
func (*FileShare) DeleteFileShare ¶ added in v0.5.5
func (f *FileShare) DeleteFileShare(shareID string) (*csi.DeleteVolumeResponse, error)
func (*FileShare) FindFileshare ¶ added in v0.5.5
func (f *FileShare) FindFileshare(fileshareName string) (*model.FileShareSpec, error)
func (*FileShare) ListFileShares ¶ added in v0.5.5
func (f *FileShare) ListFileShares(req *csi.ListVolumesRequest) (*csi.ListVolumesResponse, error)
func (*FileShare) NodePublishFileShare ¶ added in v0.5.5
func (f *FileShare) NodePublishFileShare(req *csi.NodePublishVolumeRequest) (*csi.NodePublishVolumeResponse, error)
func (*FileShare) NodeStageFileShare ¶ added in v0.5.5
func (f *FileShare) NodeStageFileShare(req *csi.NodeStageVolumeRequest) (*csi.NodeStageVolumeResponse, error)
func (*FileShare) NodeUnpublishFileShare ¶ added in v0.5.5
func (f *FileShare) NodeUnpublishFileShare(req *csi.NodeUnpublishVolumeRequest) (*csi.NodeUnpublishVolumeResponse, error)
func (*FileShare) NodeUnstageFileShare ¶ added in v0.5.5
func (f *FileShare) NodeUnstageFileShare(req *csi.NodeUnstageVolumeRequest) (*csi.NodeUnstageVolumeResponse, error)
type Plugin ¶
Plugin define
func (*Plugin) ControllerGetCapabilities ¶
func (p *Plugin) ControllerGetCapabilities( ctx context.Context, req *csi.ControllerGetCapabilitiesRequest) ( *csi.ControllerGetCapabilitiesResponse, error)
ControllerGetCapabilities implementation
func (*Plugin) ControllerPublishVolume ¶
func (p *Plugin) ControllerPublishVolume(ctx context.Context, req *csi.ControllerPublishVolumeRequest) ( *csi.ControllerPublishVolumeResponse, error)
ControllerPublishVolume implementation
func (*Plugin) ControllerUnpublishVolume ¶
func (p *Plugin) ControllerUnpublishVolume( ctx context.Context, req *csi.ControllerUnpublishVolumeRequest) ( *csi.ControllerUnpublishVolumeResponse, error)
ControllerUnpublishVolume implementation
func (*Plugin) CreateSnapshot ¶ added in v0.3.3
func (p *Plugin) CreateSnapshot( ctx context.Context, req *csi.CreateSnapshotRequest) ( *csi.CreateSnapshotResponse, error)
CreateSnapshot implementation
func (*Plugin) CreateVolume ¶
func (p *Plugin) CreateVolume( ctx context.Context, req *csi.CreateVolumeRequest) ( *csi.CreateVolumeResponse, error)
CreateVolume implementation
func (*Plugin) DeleteSnapshot ¶ added in v0.3.3
func (p *Plugin) DeleteSnapshot( ctx context.Context, req *csi.DeleteSnapshotRequest) ( *csi.DeleteSnapshotResponse, error)
DeleteSnapshot implementation
func (*Plugin) DeleteVolume ¶
func (p *Plugin) DeleteVolume( ctx context.Context, req *csi.DeleteVolumeRequest) ( *csi.DeleteVolumeResponse, error)
DeleteVolume implementation
func (*Plugin) FindSnapshot ¶ added in v0.5.3
func (p *Plugin) FindSnapshot(req *model.VolumeSnapshotSpec) (bool, bool, *model.VolumeSnapshotSpec, error)
FindSnapshot implementation
func (*Plugin) GetCapacity ¶
func (p *Plugin) GetCapacity( ctx context.Context, req *csi.GetCapacityRequest) ( *csi.GetCapacityResponse, error)
GetCapacity implementation
func (*Plugin) GetPluginCapabilities ¶
func (p *Plugin) GetPluginCapabilities( ctx context.Context, req *csi.GetPluginCapabilitiesRequest) ( *csi.GetPluginCapabilitiesResponse, error)
GetPluginCapabilities implementation
func (*Plugin) GetPluginInfo ¶
func (p *Plugin) GetPluginInfo( ctx context.Context, req *csi.GetPluginInfoRequest) ( *csi.GetPluginInfoResponse, error)
GetPluginInfo implementation
func (*Plugin) ListSnapshots ¶ added in v0.3.3
func (p *Plugin) ListSnapshots( ctx context.Context, req *csi.ListSnapshotsRequest) ( *csi.ListSnapshotsResponse, error)
ListSnapshots implementation
func (*Plugin) ListVolumes ¶
func (p *Plugin) ListVolumes( ctx context.Context, req *csi.ListVolumesRequest) ( *csi.ListVolumesResponse, error)
ListVolumes implementation
func (*Plugin) NodeGetCapabilities ¶
func (p *Plugin) NodeGetCapabilities( ctx context.Context, req *csi.NodeGetCapabilitiesRequest) ( *csi.NodeGetCapabilitiesResponse, error)
NodeGetCapabilities implementation
func (*Plugin) NodeGetInfo ¶ added in v0.3.3
func (p *Plugin) NodeGetInfo( ctx context.Context, req *csi.NodeGetInfoRequest) ( *csi.NodeGetInfoResponse, error)
NodeGetInfo gets information on a node
func (*Plugin) NodeGetVolumeStats ¶ added in v0.3.3
func (p *Plugin) NodeGetVolumeStats( ctx context.Context, req *csi.NodeGetVolumeStatsRequest) ( *csi.NodeGetVolumeStatsResponse, error)
NodeGetVolumeStats implementation
func (*Plugin) NodePublishVolume ¶
func (p *Plugin) NodePublishVolume( ctx context.Context, req *csi.NodePublishVolumeRequest) ( *csi.NodePublishVolumeResponse, error)
NodePublishVolume implementation
func (*Plugin) NodeStageVolume ¶
func (p *Plugin) NodeStageVolume( ctx context.Context, req *csi.NodeStageVolumeRequest) ( *csi.NodeStageVolumeResponse, error)
NodeStageVolume implementation
func (*Plugin) NodeUnpublishVolume ¶
func (p *Plugin) NodeUnpublishVolume( ctx context.Context, req *csi.NodeUnpublishVolumeRequest) ( *csi.NodeUnpublishVolumeResponse, error)
NodeUnpublishVolume implementation
func (*Plugin) NodeUnstageVolume ¶
func (p *Plugin) NodeUnstageVolume( ctx context.Context, req *csi.NodeUnstageVolumeRequest) ( *csi.NodeUnstageVolumeResponse, error)
NodeUnstageVolume implementation
func (*Plugin) Probe ¶
func (p *Plugin) Probe( ctx context.Context, req *csi.ProbeRequest) ( *csi.ProbeResponse, error)
Probe implementation
func (*Plugin) UnpublishRoutine ¶ added in v0.5.3
func (p *Plugin) UnpublishRoutine()
UnpublishRoutine implementation
func (*Plugin) ValidateVolumeCapabilities ¶
func (p *Plugin) ValidateVolumeCapabilities( ctx context.Context, req *csi.ValidateVolumeCapabilitiesRequest) ( *csi.ValidateVolumeCapabilitiesResponse, error)
ValidateVolumeCapabilities implementation
type Volume ¶ added in v0.5.5
func (*Volume) ControllerPublishVolume ¶ added in v0.5.5
func (v *Volume) ControllerPublishVolume(req *csi.ControllerPublishVolumeRequest) (*csi.ControllerPublishVolumeResponse, error)
func (*Volume) ControllerUnpublishVolume ¶ added in v0.5.5
func (v *Volume) ControllerUnpublishVolume(req *csi.ControllerUnpublishVolumeRequest) (*csi.ControllerUnpublishVolumeResponse, error)
func (*Volume) CreateVolume ¶ added in v0.5.5
func (v *Volume) CreateVolume(req *csi.CreateVolumeRequest) (*csi.CreateVolumeResponse, error)
func (*Volume) DeleteVolume ¶ added in v0.5.5
func (v *Volume) DeleteVolume(volId string) (*csi.DeleteVolumeResponse, error)
func (*Volume) FindVolume ¶ added in v0.5.5
func (v *Volume) FindVolume(volName string) (*model.VolumeSpec, error)
FindVolume implementation
func (*Volume) ListVolumes ¶ added in v0.5.5
func (v *Volume) ListVolumes(req *csi.ListVolumesRequest) (*csi.ListVolumesResponse, error)
func (*Volume) NodePublishVolume ¶ added in v0.5.5
func (v *Volume) NodePublishVolume(req *csi.NodePublishVolumeRequest) (*csi.NodePublishVolumeResponse, error)
func (*Volume) NodeStageVolume ¶ added in v0.5.5
func (v *Volume) NodeStageVolume(req *csi.NodeStageVolumeRequest) (*csi.NodeStageVolumeResponse, error)
func (*Volume) NodeUnpublishVolume ¶ added in v0.5.5
func (v *Volume) NodeUnpublishVolume(req *csi.NodeUnpublishVolumeRequest) (*csi.NodeUnpublishVolumeResponse, error)
func (*Volume) NodeUnstageVolume ¶ added in v0.5.5
func (v *Volume) NodeUnstageVolume(req *csi.NodeUnstageVolumeRequest) (*csi.NodeUnstageVolumeResponse, error)