Documentation ¶
Index ¶
- Constants
- type Option
- type Options
- type Service
- func (s *Service) NodeExpandVolume(ctx context.Context, req *csi.NodeExpandVolumeRequest) (*csi.NodeExpandVolumeResponse, error)
- func (s *Service) NodeGetCapabilities(ctx context.Context, req *csi.NodeGetCapabilitiesRequest) (*csi.NodeGetCapabilitiesResponse, error)
- func (s *Service) NodeGetInfo(ctx context.Context, req *csi.NodeGetInfoRequest) (*csi.NodeGetInfoResponse, error)
- func (s *Service) NodeGetVolumeStats(ctx context.Context, req *csi.NodeGetVolumeStatsRequest) (*csi.NodeGetVolumeStatsResponse, error)
- func (s *Service) NodePublishVolume(ctx context.Context, req *csi.NodePublishVolumeRequest) (*csi.NodePublishVolumeResponse, error)
- func (s *Service) NodeStageVolume(ctx context.Context, req *csi.NodeStageVolumeRequest) (*csi.NodeStageVolumeResponse, error)
- func (s *Service) NodeUnpublishVolume(ctx context.Context, req *csi.NodeUnpublishVolumeRequest) (*csi.NodeUnpublishVolumeResponse, error)
- func (s *Service) NodeUnstageVolume(ctx context.Context, req *csi.NodeUnstageVolumeRequest) (*csi.NodeUnstageVolumeResponse, error)
Constants ¶
const ( // MaxVolumesPerNode defines the maximum volumes per node. MaxVolumesPerNode int64 = 50 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(o *Options)
Option defines a single option function.
func WithDatacenter ¶
WithDatacenter provides a function to set the datacenter option.
func WithResize ¶
WithResize provides a function to set the resize option.
func WithServer ¶
WithServer provides a function to set the server option.
func WithVolume ¶
WithVolume provides a function to set the volume option.
type Options ¶
type Options struct { Server string Datacenter string Volume *volume.Service Mount *mount.Service Resize *resize.Service }
Options defines the available options for this package.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service defines the service for the node component.
func NewService ¶
NewService simply initializes a new node service.
func (*Service) NodeExpandVolume ¶
func (s *Service) NodeExpandVolume(ctx context.Context, req *csi.NodeExpandVolumeRequest) (*csi.NodeExpandVolumeResponse, error)
NodeExpandVolume implements the CSI standard definition.
func (*Service) NodeGetCapabilities ¶
func (s *Service) NodeGetCapabilities(ctx context.Context, req *csi.NodeGetCapabilitiesRequest) (*csi.NodeGetCapabilitiesResponse, error)
NodeGetCapabilities implements the CSI standard definition.
func (*Service) NodeGetInfo ¶
func (s *Service) NodeGetInfo(ctx context.Context, req *csi.NodeGetInfoRequest) (*csi.NodeGetInfoResponse, error)
NodeGetInfo implements the CSI standard definition.
func (*Service) NodeGetVolumeStats ¶
func (s *Service) NodeGetVolumeStats(ctx context.Context, req *csi.NodeGetVolumeStatsRequest) (*csi.NodeGetVolumeStatsResponse, error)
NodeGetVolumeStats implements the CSI standard definition.
func (*Service) NodePublishVolume ¶
func (s *Service) NodePublishVolume(ctx context.Context, req *csi.NodePublishVolumeRequest) (*csi.NodePublishVolumeResponse, error)
NodePublishVolume implements the CSI standard definition.
func (*Service) NodeStageVolume ¶
func (s *Service) NodeStageVolume(ctx context.Context, req *csi.NodeStageVolumeRequest) (*csi.NodeStageVolumeResponse, error)
NodeStageVolume implements the CSI standard definition.
func (*Service) NodeUnpublishVolume ¶
func (s *Service) NodeUnpublishVolume(ctx context.Context, req *csi.NodeUnpublishVolumeRequest) (*csi.NodeUnpublishVolumeResponse, error)
NodeUnpublishVolume implements the CSI standard definition.
func (*Service) NodeUnstageVolume ¶
func (s *Service) NodeUnstageVolume(ctx context.Context, req *csi.NodeUnstageVolumeRequest) (*csi.NodeUnstageVolumeResponse, error)
NodeUnstageVolume implements the CSI standard definition.