Documentation ¶
Index ¶
- type Driver
- type EmulateCSI0Driver
- type EmulateCSIDriver
- type OIMBackend
- type Option
- func WithCSIEndpoint(endpoint string) Option
- func WithCSIVersion(version string) Option
- func WithDriverName(name string) Option
- func WithDriverVersion(version string) Option
- func WithEmulation(csiDriverName string) Option
- func WithNodeID(id string) Option
- func WithOIMControllerID(id string) Option
- func WithOIMRegistryAddress(address string) Option
- func WithRegistryCreds(ca, key string) Option
- func WithVHostEndpoint(endpoint string) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Driver ¶
type Driver interface { Start(ctx context.Context) (*oimcommon.NonBlockingGRPCServer, error) Run(ctx context.Context) error }
Driver is the public interface for managing the OIM CSI driver.
type EmulateCSI0Driver ¶
type EmulateCSI0Driver struct { CSIDriverName string ControllerServiceCapabilities []csi0.ControllerServiceCapability_RPC_Type VolumeCapabilityAccessModes []csi0.VolumeCapability_AccessMode_Mode MapVolumeParams func(from *csi0.NodeStageVolumeRequest, to *oim.MapVolumeRequest) error }
EmulateCSI0Driver deals with parameters meant for some other CSI v0.3 driver.
type EmulateCSIDriver ¶
type EmulateCSIDriver struct { CSIDriverName string ControllerServiceCapabilities []csi.ControllerServiceCapability_RPC_Type VolumeCapabilityAccessModes []csi.VolumeCapability_AccessMode_Mode MapVolumeParams func(from *csi.NodeStageVolumeRequest, to *oim.MapVolumeRequest) error }
EmulateCSIDriver deals with parameters meant for some other CSI v1.0 driver.
type OIMBackend ¶
type OIMBackend interface {
// contains filtered or unexported methods
}
OIMBackend defines the actual implementation of several operations. It has two implementations: - OIM CSI driver directly controlling SPDK running on the same host (local.go) - OIM CSI driver controlling SPDK through OIM registry and controller (remote.go)
type Option ¶
type Option func(*oimDriver) error
Option is the type-safe parameter for configuring New.
func WithCSIEndpoint ¶
WithCSIEndpoint determines what the driver listens on. Uses the same unix:// or tcp:// prefix as other CSI drivers to determine the network.
func WithCSIVersion ¶
WithCSIVersion sets the CSI version that is to be implemented by the driver.
func WithDriverName ¶
WithDriverName overrides the default CSI driver name.
func WithDriverVersion ¶
WithDriverVersion sets the version reported by the driver.
func WithEmulation ¶
WithEmulation switches between different personalities: in this mode, the OIM CSI driver handles arguments for some other, "emulated" CSI driver and redirects local node operations to the OIM controller.
func WithNodeID ¶
WithNodeID sets the node ID reported by the driver.
func WithOIMControllerID ¶
WithOIMControllerID sets the ID assigned to the controller that is responsible for the host.
func WithOIMRegistryAddress ¶
WithOIMRegistryAddress sets the gRPC dial string for contacting the OIM registry.
func WithRegistryCreds ¶
WithRegistryCreds sets the TLS key and CA for connections to the OIM registry.
func WithVHostEndpoint ¶
WithVHostEndpoint sets the net.Dial string for the SPDK RPC communication.