Documentation ¶
Index ¶
- func GetDriverName(ctx context.Context, conn *grpc.ClientConn) (string, error)
- func Probe(ctx context.Context, conn *grpc.ClientConn) (ready bool, err error)
- func ProbeForever(ctx context.Context, conn *grpc.ClientConn, singleProbeTimeout time.Duration) error
- type ControllerCapabilitySet
- type GroupControllerCapabilitySet
- type PluginCapabilitySet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDriverName ¶
GetDriverName returns name of CSI driver.
func ProbeForever ¶
func ProbeForever(ctx context.Context, conn *grpc.ClientConn, singleProbeTimeout time.Duration) error
ProbeForever calls Probe() of a CSI driver and waits until the driver becomes ready. Any error other than timeout is returned.
Types ¶
type ControllerCapabilitySet ¶
type ControllerCapabilitySet map[csi.ControllerServiceCapability_RPC_Type]bool
ControllerCapabilitySet is set of CSI controller capabilities. Only supported capabilities are in the map.
func GetControllerCapabilities ¶
func GetControllerCapabilities(ctx context.Context, conn *grpc.ClientConn) (ControllerCapabilitySet, error)
GetControllerCapabilities returns set of supported controller capabilities of CSI driver.
type GroupControllerCapabilitySet ¶ added in v0.14.0
type GroupControllerCapabilitySet map[csi.GroupControllerServiceCapability_RPC_Type]bool
GroupControllerCapabilitySet is set of CSI groupcontroller capabilities. Only supported capabilities are in the map.
func GetGroupControllerCapabilities ¶ added in v0.14.0
func GetGroupControllerCapabilities(ctx context.Context, conn *grpc.ClientConn) (GroupControllerCapabilitySet, error)
GetGroupControllerCapabilities returns set of supported group controller capabilities of CSI driver.
type PluginCapabilitySet ¶
type PluginCapabilitySet map[csi.PluginCapability_Service_Type]bool
PluginCapabilitySet is set of CSI plugin capabilities. Only supported capabilities are in the map.
func GetPluginCapabilities ¶
func GetPluginCapabilities(ctx context.Context, conn *grpc.ClientConn) (PluginCapabilitySet, error)
GetPluginCapabilities returns set of supported capabilities of CSI driver.