Documentation ¶
Index ¶
- Variables
- func DeleteUsageFullServers(serverList []string, thresholdFloat64 float64) ([]string, error)
- type ControllerServer
- func (c ControllerServer) ControllerExpandVolume(context.Context, *csi.ControllerExpandVolumeRequest) (*csi.ControllerExpandVolumeResponse, error)
- func (c *ControllerServer) CreateVolume(ctx context.Context, req *csi.CreateVolumeRequest) (*csi.CreateVolumeResponse, error)
- func (c *ControllerServer) DeleteVolume(ctx context.Context, req *csi.DeleteVolumeRequest) (*csi.DeleteVolumeResponse, error)
- func (c ControllerServer) ValidateVolumeCapabilities(ctx context.Context, req *csi.ValidateVolumeCapabilitiesRequest) (*csi.ValidateVolumeCapabilitiesResponse, error)
- type DeleteVolumeSubpathOptions
- type IdentityServer
- type NasDriver
- type NfsFilesystemOpts
- type NfsOpts
- type NfsServer
- func ParseServerList(serverList []string, thresholdFloat64 float64) ([]*NfsServer, error)
- func SelectServer(servers []*NfsServer, uniqueSelectString string, strategy string) *NfsServer
- func SelectServerRandom(servers []*NfsServer) *NfsServer
- func SelectServerRoundRobin(servers []*NfsServer, uniqueSelectString string) *NfsServer
- type NodeServer
- func (n *NodeServer) NodeExpandVolume(context.Context, *csi.NodeExpandVolumeRequest) (*csi.NodeExpandVolumeResponse, error)
- func (n *NodeServer) NodePublishVolume(ctx context.Context, req *csi.NodePublishVolumeRequest) (*csi.NodePublishVolumeResponse, error)
- func (n *NodeServer) NodeStageVolume(context.Context, *csi.NodeStageVolumeRequest) (*csi.NodeStageVolumeResponse, error)
- func (n *NodeServer) NodeUnpublishVolume(ctx context.Context, req *csi.NodeUnpublishVolumeRequest) (*csi.NodeUnpublishVolumeResponse, error)
- func (n *NodeServer) NodeUnstageVolume(context.Context, *csi.NodeUnstageVolumeRequest) (*csi.NodeUnstageVolumeResponse, error)
- type PublishOptions
- type VolumeCreateFilesystemOptions
- type VolumeCreateSubpathOptions
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type ControllerServer ¶
type ControllerServer struct { *csicommon.DefaultControllerServer Client *kubernetes.Clientset }
func NewControllerServer ¶
func NewControllerServer(d *NasDriver) *ControllerServer
func (ControllerServer) ControllerExpandVolume ¶
func (c ControllerServer) ControllerExpandVolume(context.Context, *csi.ControllerExpandVolumeRequest) (*csi.ControllerExpandVolumeResponse, error)
func (*ControllerServer) CreateVolume ¶
func (c *ControllerServer) CreateVolume(ctx context.Context, req *csi.CreateVolumeRequest) (*csi.CreateVolumeResponse, error)
func (*ControllerServer) DeleteVolume ¶
func (c *ControllerServer) DeleteVolume(ctx context.Context, req *csi.DeleteVolumeRequest) (*csi.DeleteVolumeResponse, error)
func (ControllerServer) ValidateVolumeCapabilities ¶
func (c ControllerServer) ValidateVolumeCapabilities(ctx context.Context, req *csi.ValidateVolumeCapabilitiesRequest) (*csi.ValidateVolumeCapabilitiesResponse, error)
type IdentityServer ¶
type IdentityServer struct {
*csicommon.DefaultIdentityServer
}
func NewIdentityServer ¶
func NewIdentityServer(d *NasDriver) *IdentityServer
type NfsFilesystemOpts ¶ added in v1.2.0
type NfsServer ¶ added in v0.1.2
func ParseServerList ¶ added in v0.1.2
parse ServerList that support multi servers in one SC
func SelectServer ¶ added in v0.1.2
func SelectServerRandom ¶ added in v0.1.2
func SelectServerRoundRobin ¶ added in v0.1.2
type NodeServer ¶
type NodeServer struct {
*csicommon.DefaultNodeServer
}
func NewNodeServer ¶
func NewNodeServer(d *NasDriver) *NodeServer
func (*NodeServer) NodeExpandVolume ¶
func (n *NodeServer) NodeExpandVolume(context.Context, *csi.NodeExpandVolumeRequest) (*csi.NodeExpandVolumeResponse, error)
func (*NodeServer) NodePublishVolume ¶
func (n *NodeServer) NodePublishVolume(ctx context.Context, req *csi.NodePublishVolumeRequest) (*csi.NodePublishVolumeResponse, error)
func (*NodeServer) NodeStageVolume ¶
func (n *NodeServer) NodeStageVolume(context.Context, *csi.NodeStageVolumeRequest) ( *csi.NodeStageVolumeResponse, error)
func (*NodeServer) NodeUnpublishVolume ¶
func (n *NodeServer) NodeUnpublishVolume(ctx context.Context, req *csi.NodeUnpublishVolumeRequest) (*csi.NodeUnpublishVolumeResponse, error)
func (*NodeServer) NodeUnstageVolume ¶
func (n *NodeServer) NodeUnstageVolume(context.Context, *csi.NodeUnstageVolumeRequest) ( *csi.NodeUnstageVolumeResponse, error)
type PublishOptions ¶
type VolumeCreateFilesystemOptions ¶ added in v1.2.0
type VolumeCreateFilesystemOptions struct { NfsFilesystemOpts VolumeAs string }
Click to show internal directories.
Click to hide internal directories.