Documentation ¶
Index ¶
- Constants
- Variables
- type StoragePlugin
- func (s *StoragePlugin) ControllerGetCapabilities(ctx context.Context, in *csi.ControllerGetCapabilitiesRequest) (*csi.ControllerGetCapabilitiesResponse, error)
- func (s *StoragePlugin) ControllerPublishVolume(ctx context.Context, in *csi.ControllerPublishVolumeRequest) (*csi.ControllerPublishVolumeResponse, error)
- func (s *StoragePlugin) ControllerUnpublishVolume(ctx context.Context, in *csi.ControllerUnpublishVolumeRequest) (*csi.ControllerUnpublishVolumeResponse, error)
- func (s *StoragePlugin) CreateVolume(ctx context.Context, in *csi.CreateVolumeRequest) (*csi.CreateVolumeResponse, error)
- func (s *StoragePlugin) DeleteVolume(ctx context.Context, in *csi.DeleteVolumeRequest) (*csi.DeleteVolumeResponse, error)
- func (s *StoragePlugin) GetCapacity(ctx context.Context, in *csi.GetCapacityRequest) (*csi.GetCapacityResponse, error)
- func (s *StoragePlugin) GetNodeID(ctx context.Context, in *csi.GetNodeIDRequest) (*csi.GetNodeIDResponse, error)
- func (s *StoragePlugin) GetPluginInfo(ctx context.Context, req *csi.GetPluginInfoRequest) (*csi.GetPluginInfoResponse, error)
- func (s *StoragePlugin) GetSupportedVersions(ctx context.Context, req *csi.GetSupportedVersionsRequest) (*csi.GetSupportedVersionsResponse, error)
- func (sp *StoragePlugin) Init()
- func (s *StoragePlugin) ListVolumes(ctx context.Context, in *csi.ListVolumesRequest) (*csi.ListVolumesResponse, error)
- func (s *StoragePlugin) NodeGetCapabilities(ctx context.Context, in *csi.NodeGetCapabilitiesRequest) (*csi.NodeGetCapabilitiesResponse, error)
- func (s *StoragePlugin) NodePublishVolume(ctx context.Context, in *csi.NodePublishVolumeRequest) (*csi.NodePublishVolumeResponse, error)
- func (s *StoragePlugin) NodeUnpublishVolume(ctx context.Context, in *csi.NodeUnpublishVolumeRequest) (*csi.NodeUnpublishVolumeResponse, error)
- func (s *StoragePlugin) ProbeNode(ctx context.Context, in *csi.ProbeNodeRequest) (*csi.ProbeNodeResponse, error)
- func (s *StoragePlugin) ValidateVolumeCapabilities(ctx context.Context, in *csi.ValidateVolumeCapabilitiesRequest) (*csi.ValidateVolumeCapabilitiesResponse, error)
Constants ¶
View Source
const (
// SpName holds the name of the Storage Plugin / driver
SpName = "csi-nfs"
)
Variables ¶
View Source
var ( // CSIVersions holds a slice of compatible CSI spec versions CSIVersions = []*csi.Version{ &csi.Version{ Major: 0, Minor: 0, Patch: 0, }, } )
Functions ¶
This section is empty.
Types ¶
type StoragePlugin ¶
type StoragePlugin struct {
// contains filtered or unexported fields
}
StoragePlugin contains parameters for the plugin
func (*StoragePlugin) ControllerGetCapabilities ¶
func (s *StoragePlugin) ControllerGetCapabilities( ctx context.Context, in *csi.ControllerGetCapabilitiesRequest) (*csi.ControllerGetCapabilitiesResponse, error)
func (*StoragePlugin) ControllerPublishVolume ¶
func (s *StoragePlugin) ControllerPublishVolume( ctx context.Context, in *csi.ControllerPublishVolumeRequest) (*csi.ControllerPublishVolumeResponse, error)
func (*StoragePlugin) ControllerUnpublishVolume ¶
func (s *StoragePlugin) ControllerUnpublishVolume( ctx context.Context, in *csi.ControllerUnpublishVolumeRequest) (*csi.ControllerUnpublishVolumeResponse, error)
func (*StoragePlugin) CreateVolume ¶
func (s *StoragePlugin) CreateVolume( ctx context.Context, in *csi.CreateVolumeRequest) (*csi.CreateVolumeResponse, error)
func (*StoragePlugin) DeleteVolume ¶
func (s *StoragePlugin) DeleteVolume( ctx context.Context, in *csi.DeleteVolumeRequest) (*csi.DeleteVolumeResponse, error)
func (*StoragePlugin) GetCapacity ¶
func (s *StoragePlugin) GetCapacity( ctx context.Context, in *csi.GetCapacityRequest) (*csi.GetCapacityResponse, error)
func (*StoragePlugin) GetNodeID ¶
func (s *StoragePlugin) GetNodeID( ctx context.Context, in *csi.GetNodeIDRequest) (*csi.GetNodeIDResponse, error)
func (*StoragePlugin) GetPluginInfo ¶
func (s *StoragePlugin) GetPluginInfo( ctx context.Context, req *csi.GetPluginInfoRequest) ( *csi.GetPluginInfoResponse, error)
func (*StoragePlugin) GetSupportedVersions ¶
func (s *StoragePlugin) GetSupportedVersions( ctx context.Context, req *csi.GetSupportedVersionsRequest) ( *csi.GetSupportedVersionsResponse, error)
func (*StoragePlugin) Init ¶
func (sp *StoragePlugin) Init()
Init initializes the plugin based on environment variables
func (*StoragePlugin) ListVolumes ¶
func (s *StoragePlugin) ListVolumes( ctx context.Context, in *csi.ListVolumesRequest) (*csi.ListVolumesResponse, error)
func (*StoragePlugin) NodeGetCapabilities ¶
func (s *StoragePlugin) NodeGetCapabilities( ctx context.Context, in *csi.NodeGetCapabilitiesRequest) (*csi.NodeGetCapabilitiesResponse, error)
func (*StoragePlugin) NodePublishVolume ¶
func (s *StoragePlugin) NodePublishVolume( ctx context.Context, in *csi.NodePublishVolumeRequest) (*csi.NodePublishVolumeResponse, error)
func (*StoragePlugin) NodeUnpublishVolume ¶
func (s *StoragePlugin) NodeUnpublishVolume( ctx context.Context, in *csi.NodeUnpublishVolumeRequest) (*csi.NodeUnpublishVolumeResponse, error)
func (*StoragePlugin) ProbeNode ¶
func (s *StoragePlugin) ProbeNode( ctx context.Context, in *csi.ProbeNodeRequest) (*csi.ProbeNodeResponse, error)
func (*StoragePlugin) ValidateVolumeCapabilities ¶
func (s *StoragePlugin) ValidateVolumeCapabilities( ctx context.Context, in *csi.ValidateVolumeCapabilitiesRequest) (*csi.ValidateVolumeCapabilitiesResponse, error)
Click to show internal directories.
Click to hide internal directories.