Documentation ¶
Index ¶
- func GetServiceCapabilities(caps ...csi.ControllerServiceCapability_RPC_Type) []*csi.ControllerServiceCapability
- type Controller
- func (c *Controller) ControllerExpandVolume(ctx context.Context, req *csi.ControllerExpandVolumeRequest) (*csi.ControllerExpandVolumeResponse, error)
- func (c *Controller) ControllerGetCapabilities(ctx context.Context, req *csi.ControllerGetCapabilitiesRequest) (*csi.ControllerGetCapabilitiesResponse, error)
- func (c *Controller) ControllerGetVolume(ctx context.Context, req *csi.ControllerGetVolumeRequest) (*csi.ControllerGetVolumeResponse, error)
- func (c *Controller) ControllerPublishVolume(ctx context.Context, req *csi.ControllerPublishVolumeRequest) (*csi.ControllerPublishVolumeResponse, error)
- func (c *Controller) ControllerUnpublishVolume(ctx context.Context, req *csi.ControllerUnpublishVolumeRequest) (*csi.ControllerUnpublishVolumeResponse, error)
- func (c *Controller) CreateSnapshot(ctx context.Context, req *csi.CreateSnapshotRequest) (*csi.CreateSnapshotResponse, error)
- func (c *Controller) CreateVolume(ctx context.Context, req *csi.CreateVolumeRequest) (resp *csi.CreateVolumeResponse, err error)
- func (c *Controller) DeleteSnapshot(ctx context.Context, req *csi.DeleteSnapshotRequest) (*csi.DeleteSnapshotResponse, error)
- func (c *Controller) DeleteVolume(ctx context.Context, req *csi.DeleteVolumeRequest) (*csi.DeleteVolumeResponse, error)
- func (c *Controller) GetCapacity(ctx context.Context, req *csi.GetCapacityRequest) (*csi.GetCapacityResponse, error)
- func (c *Controller) ListSnapshots(ctx context.Context, req *csi.ListSnapshotsRequest) (*csi.ListSnapshotsResponse, error)
- func (c *Controller) ListVolumes(ctx context.Context, req *csi.ListVolumesRequest) (*csi.ListVolumesResponse, error)
- func (c *Controller) ValidateVolumeCapabilities(ctx context.Context, req *csi.ValidateVolumeCapabilitiesRequest) (*csi.ValidateVolumeCapabilitiesResponse, error)
- type ControllerInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetServiceCapabilities ¶
func GetServiceCapabilities(caps ...csi.ControllerServiceCapability_RPC_Type) []*csi.ControllerServiceCapability
GetServiceCapabilities returns a collection of all the Controller Service Capabilities.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func New ¶
func New(ctrlr ControllerInterface) *Controller
func (*Controller) ControllerExpandVolume ¶
func (c *Controller) ControllerExpandVolume(ctx context.Context, req *csi.ControllerExpandVolumeRequest) (*csi.ControllerExpandVolumeResponse, error)
func (*Controller) ControllerGetCapabilities ¶
func (c *Controller) ControllerGetCapabilities(ctx context.Context, req *csi.ControllerGetCapabilitiesRequest) (*csi.ControllerGetCapabilitiesResponse, error)
func (*Controller) ControllerGetVolume ¶
func (c *Controller) ControllerGetVolume(ctx context.Context, req *csi.ControllerGetVolumeRequest) (*csi.ControllerGetVolumeResponse, error)
func (*Controller) ControllerPublishVolume ¶
func (c *Controller) ControllerPublishVolume(ctx context.Context, req *csi.ControllerPublishVolumeRequest) (*csi.ControllerPublishVolumeResponse, error)
func (*Controller) ControllerUnpublishVolume ¶
func (c *Controller) ControllerUnpublishVolume(ctx context.Context, req *csi.ControllerUnpublishVolumeRequest) (*csi.ControllerUnpublishVolumeResponse, error)
func (*Controller) CreateSnapshot ¶
func (c *Controller) CreateSnapshot(ctx context.Context, req *csi.CreateSnapshotRequest) (*csi.CreateSnapshotResponse, error)
func (*Controller) CreateVolume ¶
func (c *Controller) CreateVolume(ctx context.Context, req *csi.CreateVolumeRequest) (resp *csi.CreateVolumeResponse, err error)
func (*Controller) DeleteSnapshot ¶
func (c *Controller) DeleteSnapshot(ctx context.Context, req *csi.DeleteSnapshotRequest) (*csi.DeleteSnapshotResponse, error)
func (*Controller) DeleteVolume ¶
func (c *Controller) DeleteVolume(ctx context.Context, req *csi.DeleteVolumeRequest) (*csi.DeleteVolumeResponse, error)
func (*Controller) GetCapacity ¶
func (c *Controller) GetCapacity(ctx context.Context, req *csi.GetCapacityRequest) (*csi.GetCapacityResponse, error)
func (*Controller) ListSnapshots ¶
func (c *Controller) ListSnapshots(ctx context.Context, req *csi.ListSnapshotsRequest) (*csi.ListSnapshotsResponse, error)
func (*Controller) ListVolumes ¶
func (c *Controller) ListVolumes(ctx context.Context, req *csi.ListVolumesRequest) (*csi.ListVolumesResponse, error)
func (*Controller) ValidateVolumeCapabilities ¶
func (c *Controller) ValidateVolumeCapabilities(ctx context.Context, req *csi.ValidateVolumeCapabilitiesRequest) (*csi.ValidateVolumeCapabilitiesResponse, error)
type ControllerInterface ¶
type ControllerInterface interface { CreateVolumeHandler(context.Context, *csi.CreateVolumeResponse, *csi.CreateVolumeRequest) error DeleteVolumeHandler(context.Context, *csi.DeleteVolumeResponse, *csi.DeleteVolumeRequest) error GetCapabilitiesHandler(context.Context, *csi.ControllerGetCapabilitiesResponse, *csi.ControllerGetCapabilitiesRequest) error ValidateVolumeCapabilitiesHandler(context.Context, *csi.ValidateVolumeCapabilitiesResponse, *csi.ValidateVolumeCapabilitiesRequest) error ControllerPublishVolumeHandler(context.Context, *csi.ControllerPublishVolumeResponse, *csi.ControllerPublishVolumeRequest) error ControllerUnpublishVolumeHandler(context.Context, *csi.ControllerUnpublishVolumeResponse, *csi.ControllerUnpublishVolumeRequest) error GetCapacityHandler(context.Context, *csi.GetCapacityResponse, *csi.GetCapacityRequest) error ListVolumesHandler(context.Context, *csi.ListVolumesResponse, *csi.ListVolumesRequest) error ControllerGetVolumeHandler(context.Context, *csi.ControllerGetVolumeResponse, *csi.ControllerGetVolumeRequest) error }
Click to show internal directories.
Click to hide internal directories.