Documentation ¶
Index ¶
- Variables
- func NewControllerServer(d *CinderDriver, cloud openstack.IOpenStack) *controllerServer
- func NewControllerServiceCapability(cap csi.ControllerServiceCapability_RPC_Type) *csi.ControllerServiceCapability
- func NewIdentityServer(d *CinderDriver) *identityServer
- func NewNodeServer(d *CinderDriver, mount mount.IMount, cloud openstack.IOpenStack) *nodeServer
- func NewNodeServiceCapability(cap csi.NodeServiceCapability_RPC_Type) *csi.NodeServiceCapability
- func NewVolumeCapabilityAccessMode(mode csi.VolumeCapability_AccessMode_Mode) *csi.VolumeCapability_AccessMode
- func ParseEndpoint(ep string) (string, string, error)
- func RunControllerandNodePublishServer(endpoint string, ids csi.IdentityServer, cs csi.ControllerServer, ...)
- type CinderDriver
- func (d *CinderDriver) AddControllerServiceCapabilities(cl []csi.ControllerServiceCapability_RPC_Type)
- func (d *CinderDriver) AddNodeServiceCapabilities(nl []csi.NodeServiceCapability_RPC_Type) error
- func (d *CinderDriver) AddVolumeCapabilityAccessModes(vc []csi.VolumeCapability_AccessMode_Mode) []*csi.VolumeCapability_AccessMode
- func (d *CinderDriver) GetVolumeCapabilityAccessModes() []*csi.VolumeCapability_AccessMode
- func (d *CinderDriver) Run()
- func (d *CinderDriver) SetupDriver(cloud openstack.IOpenStack, mount mount.IMount)
- func (d *CinderDriver) ValidateControllerServiceRequest(c csi.ControllerServiceCapability_RPC_Type) error
- type NonBlockingGRPCServer
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Driver version // Version history: // * 1.3.0: Up to version 1.3.0 driver version was the same as CSI spec version // * 1.3.1: Bump for 1.21 release // * 1.3.2: Allow --cloud-config to be given multiple times // * 1.3.3: Bump for 1.22 release Version = "1.3.3" )
Functions ¶
func NewControllerServer ¶
func NewControllerServer(d *CinderDriver, cloud openstack.IOpenStack) *controllerServer
func NewControllerServiceCapability ¶
func NewControllerServiceCapability(cap csi.ControllerServiceCapability_RPC_Type) *csi.ControllerServiceCapability
func NewIdentityServer ¶
func NewIdentityServer(d *CinderDriver) *identityServer
func NewNodeServer ¶
func NewNodeServer(d *CinderDriver, mount mount.IMount, cloud openstack.IOpenStack) *nodeServer
func NewNodeServiceCapability ¶
func NewNodeServiceCapability(cap csi.NodeServiceCapability_RPC_Type) *csi.NodeServiceCapability
func NewVolumeCapabilityAccessMode ¶
func NewVolumeCapabilityAccessMode(mode csi.VolumeCapability_AccessMode_Mode) *csi.VolumeCapability_AccessMode
func RunControllerandNodePublishServer ¶
func RunControllerandNodePublishServer(endpoint string, ids csi.IdentityServer, cs csi.ControllerServer, ns csi.NodeServer)
Types ¶
type CinderDriver ¶
type CinderDriver struct {
// contains filtered or unexported fields
}
func NewDriver ¶
func NewDriver(endpoint, cluster string) *CinderDriver
func (*CinderDriver) AddControllerServiceCapabilities ¶
func (d *CinderDriver) AddControllerServiceCapabilities(cl []csi.ControllerServiceCapability_RPC_Type)
func (*CinderDriver) AddNodeServiceCapabilities ¶
func (d *CinderDriver) AddNodeServiceCapabilities(nl []csi.NodeServiceCapability_RPC_Type) error
func (*CinderDriver) AddVolumeCapabilityAccessModes ¶
func (d *CinderDriver) AddVolumeCapabilityAccessModes(vc []csi.VolumeCapability_AccessMode_Mode) []*csi.VolumeCapability_AccessMode
func (*CinderDriver) GetVolumeCapabilityAccessModes ¶
func (d *CinderDriver) GetVolumeCapabilityAccessModes() []*csi.VolumeCapability_AccessMode
func (*CinderDriver) Run ¶
func (d *CinderDriver) Run()
func (*CinderDriver) SetupDriver ¶
func (d *CinderDriver) SetupDriver(cloud openstack.IOpenStack, mount mount.IMount)
func (*CinderDriver) ValidateControllerServiceRequest ¶
func (d *CinderDriver) ValidateControllerServiceRequest(c csi.ControllerServiceCapability_RPC_Type) error
type NonBlockingGRPCServer ¶
type NonBlockingGRPCServer interface { // Start services at the endpoint Start(endpoint string, ids csi.IdentityServer, cs csi.ControllerServer, ns csi.NodeServer) // Waits for the service to stop Wait() // Stops the service gracefully Stop() // Stops the service forcefully ForceStop() }
NonBlockingGRPCServer defines Non blocking GRPC server interfaces
func NewNonBlockingGRPCServer ¶
func NewNonBlockingGRPCServer() NonBlockingGRPCServer
Source Files ¶
Click to show internal directories.
Click to hide internal directories.