Documentation ¶
Index ¶
- Constants
- func ControllerGetCapabilities(ctx context.Context, req *csi.ControllerGetCapabilitiesRequest) (*csi.ControllerGetCapabilitiesResponse, error)
- func CreateSnapshot(Client *client.Client, ctx context.Context, req *csi.CreateSnapshotRequest) (*csi.CreateSnapshotResponse, error)
- func DeleteSnapshot(Client *client.Client, ctx context.Context, req *csi.DeleteSnapshotRequest) (*csi.DeleteSnapshotResponse, error)
- func GetCapacity(Client *client.Client, ctx context.Context, req *csi.GetCapacityRequest) (*csi.GetCapacityResponse, error)
- func GetPluginCapabilities(ctx context.Context, req *csi.GetPluginCapabilitiesRequest) (*csi.GetPluginCapabilitiesResponse, error)
- func GetPluginInfo(ctx context.Context, req *csi.GetPluginInfoRequest, pluginName string) (*csi.GetPluginInfoResponse, error)
- func GetSize(capacityRange *csi.CapacityRange) int64
- func GetZone(requirement *csi.TopologyRequirement, topologyZoneKey string) string
- func InitPlugin() (*client.Client, net.Listener, error)
- func ListSnapshots(Client *client.Client, ctx context.Context, req *csi.ListSnapshotsRequest) (*csi.ListSnapshotsResponse, error)
- func NewGrpcServer(lis net.Listener, pluginServer Service)
- func NodeGetCapabilities(ctx context.Context, req *csi.NodeGetCapabilitiesRequest) (*csi.NodeGetCapabilitiesResponse, error)
- func NodeGetInfo(ctx context.Context, req *csi.NodeGetInfoRequest, topologyZoneKey string) (*csi.NodeGetInfoResponse, error)
- func NodeGetVolumeStats(ctx context.Context, req *csi.NodeGetVolumeStatsRequest) (*csi.NodeGetVolumeStatsResponse, error)
- func Probe(ctx context.Context, req *csi.ProbeRequest) (*csi.ProbeResponse, error)
- func UnpublishRoutine(Client *client.Client)
- func ValidateCreateVolReq(req *csi.CreateVolumeRequest) error
- func ValidateCtrlPubVolReq(req *csi.ControllerPublishVolumeRequest) error
- func ValidateCtrlUnPubVolReq(req *csi.ControllerUnpublishVolumeRequest) error
- func ValidateDelVolReq(req *csi.DeleteVolumeRequest) error
- func ValidateNodePublishVolume(req *csi.NodePublishVolumeRequest) error
- func ValidateNodeStageVolume(req *csi.NodeStageVolumeRequest) error
- func ValidateNodeUnpublishVolume(req *csi.NodeUnpublishVolumeRequest) error
- func ValidateNodeUnstageVolume(req *csi.NodeUnstageVolumeRequest) error
- func ValidateVolumeCapabilities(ctx context.Context, req *csi.ValidateVolumeCapabilitiesRequest) (*csi.ValidateVolumeCapabilitiesResponse, error)
- func WaitForStatusStable(id string, f func(string) (interface{}, error)) (interface{}, error)
- type AttachmentObj
- func (q *AttachmentObj) Add(v interface{})
- func (q *AttachmentObj) Delete(e *list.Element)
- func (q *AttachmentObj) GetHead() *list.Element
- func (q *AttachmentObj) GetLen() int
- func (q *AttachmentObj) IsExist(v interface{}) bool
- func (q *AttachmentObj) PrintFileShareList()
- func (q *AttachmentObj) PrintVolAttachList()
- type Service
Constants ¶
const ( ParamProfile = "profile" ParamEnableReplication = "enableReplication" ParamSecondaryAZ = "secondaryAvailabilityZone" )
K8s storage class parameter keywords
const ( PublishHostIp = "hostIp" PublishHostName = "hostName" PublishAttachId = "attachmentId" PublishSecondaryAttachId = "secondaryAttachmentId" PublishAttachStatus = "attachmentStatus" PublishAttachMode = "attachMode" )
CSI publish attribute keywords
const (
DefaultAvailabilityZone = "default"
)
const (
FakeIQN = "fakeIqn"
)
PluginName setting
Variables ¶
This section is empty.
Functions ¶
func ControllerGetCapabilities ¶
func ControllerGetCapabilities( ctx context.Context, req *csi.ControllerGetCapabilitiesRequest) ( *csi.ControllerGetCapabilitiesResponse, error)
ControllerGetCapabilities implementation
func CreateSnapshot ¶
func CreateSnapshot( Client *client.Client, ctx context.Context, req *csi.CreateSnapshotRequest) ( *csi.CreateSnapshotResponse, error)
CreateSnapshot implementation
func DeleteSnapshot ¶
func DeleteSnapshot( Client *client.Client, ctx context.Context, req *csi.DeleteSnapshotRequest) ( *csi.DeleteSnapshotResponse, error)
DeleteSnapshot implementation
func GetCapacity ¶
func GetCapacity( Client *client.Client, ctx context.Context, req *csi.GetCapacityRequest) ( *csi.GetCapacityResponse, error)
GetCapacity implementation
func GetPluginCapabilities ¶
func GetPluginCapabilities( ctx context.Context, req *csi.GetPluginCapabilitiesRequest) ( *csi.GetPluginCapabilitiesResponse, error)
GetPluginCapabilities implementation
func GetPluginInfo ¶
func GetPluginInfo( ctx context.Context, req *csi.GetPluginInfoRequest, pluginName string) ( *csi.GetPluginInfoResponse, error)
GetPluginInfo implementation
func GetSize ¶
func GetSize(capacityRange *csi.CapacityRange) int64
GetSize gets volume/fileshare sieze from capacity range
func GetZone ¶
func GetZone(requirement *csi.TopologyRequirement, topologyZoneKey string) string
GetZone gets availability zone
func InitPlugin ¶
InitPlugin Initialise plugin configurations
func ListSnapshots ¶
func ListSnapshots( Client *client.Client, ctx context.Context, req *csi.ListSnapshotsRequest) ( *csi.ListSnapshotsResponse, error)
ListSnapshots implementation
func NewGrpcServer ¶
NewGrpcServer Sets up grpc server for CSI Interface handling
func NodeGetCapabilities ¶
func NodeGetCapabilities( ctx context.Context, req *csi.NodeGetCapabilitiesRequest) ( *csi.NodeGetCapabilitiesResponse, error)
NodeGetCapabilities implementation
func NodeGetInfo ¶
func NodeGetInfo( ctx context.Context, req *csi.NodeGetInfoRequest, topologyZoneKey string) ( *csi.NodeGetInfoResponse, error)
NodeGetInfo gets information on a node
func NodeGetVolumeStats ¶
func NodeGetVolumeStats( ctx context.Context, req *csi.NodeGetVolumeStatsRequest) ( *csi.NodeGetVolumeStatsResponse, error)
NodeGetVolumeStats implementation
func Probe ¶
func Probe( ctx context.Context, req *csi.ProbeRequest) ( *csi.ProbeResponse, error)
Probe implementation
func UnpublishRoutine ¶
UnpublishRoutine implementation
func ValidateCreateVolReq ¶
func ValidateCreateVolReq(req *csi.CreateVolumeRequest) error
ValidateCreateVolReq - validates input paras of CreateVolume request
func ValidateCtrlPubVolReq ¶
func ValidateCtrlPubVolReq(req *csi.ControllerPublishVolumeRequest) error
ValidateCtrlPubVolReq - validates input paras of ControllerPublishVolume request
func ValidateCtrlUnPubVolReq ¶
func ValidateCtrlUnPubVolReq(req *csi.ControllerUnpublishVolumeRequest) error
ValidateCtrlUnPubVolReq - validates input paras of ControllerUnpublishVolume request
func ValidateDelVolReq ¶
func ValidateDelVolReq(req *csi.DeleteVolumeRequest) error
ValidateDelVolReq - validates input paras of DeleteVolume request
func ValidateNodePublishVolume ¶
func ValidateNodePublishVolume(req *csi.NodePublishVolumeRequest) error
ValidateNodePublishVolume - validates input paras of NodePublishVolume request
func ValidateNodeStageVolume ¶
func ValidateNodeStageVolume(req *csi.NodeStageVolumeRequest) error
ValidateNodeStageVolume - validates input paras of NodeStageVolume request
func ValidateNodeUnpublishVolume ¶
func ValidateNodeUnpublishVolume(req *csi.NodeUnpublishVolumeRequest) error
ValidateNodeUnpublishVolume - validates input paras of NodeUnpublishVolume request
func ValidateNodeUnstageVolume ¶
func ValidateNodeUnstageVolume(req *csi.NodeUnstageVolumeRequest) error
ValidateNodeUnstageVolume - validates input paras of NodeUnstageVolume request
func ValidateVolumeCapabilities ¶
func ValidateVolumeCapabilities( ctx context.Context, req *csi.ValidateVolumeCapabilitiesRequest) ( *csi.ValidateVolumeCapabilitiesResponse, error)
ValidateVolumeCapabilities implementation
Types ¶
type AttachmentObj ¶
type AttachmentObj struct {
// contains filtered or unexported fields
}
AttachmentObj implementation
var UnpublishAttachmentList *AttachmentObj
UnpublishAttachmentList implementation
func (*AttachmentObj) Delete ¶
func (q *AttachmentObj) Delete(e *list.Element)
Delete implementation
func (*AttachmentObj) GetHead ¶
func (q *AttachmentObj) GetHead() *list.Element
GetHead implementation
func (*AttachmentObj) IsExist ¶
func (q *AttachmentObj) IsExist(v interface{}) bool
isExist implementation
func (*AttachmentObj) PrintFileShareList ¶
func (q *AttachmentObj) PrintFileShareList()
PrintFileShareList implementation
func (*AttachmentObj) PrintVolAttachList ¶
func (q *AttachmentObj) PrintVolAttachList()
PrintVolAttachList implementation
type Service ¶
type Service interface { csi.IdentityServer csi.ControllerServer csi.NodeServer }
Service Define CSI Interface