service

package
v0.0.0-...-b2a629c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 19, 2021 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ParameterStorageDomainName = "storageDomainName"
	ParameterThinProvisioning  = "thinProvisioning"
)

Variables

View Source
var (
	// set by ldflags
	VendorVersion = "0.1.1"
	VendorName    = "csi.ovirt.org"
)

Functions

This section is empty.

Types

type ControllerService

type ControllerService struct {
	// contains filtered or unexported fields
}

ControllerService implements the controller interface

func (*ControllerService) ControllerExpandVolume

ControllerExpandVolume

func (*ControllerService) ControllerGetCapabilities

ControllerGetCapabilities

func (*ControllerService) ControllerPublishVolume

ControllerPublishVolume takes a volume, which is an oVirt disk, and attaches it to a node, which is an oVirt VM.

func (*ControllerService) ControllerUnpublishVolume

ControllerUnpublishVolume detaches the disk from the VM.

func (*ControllerService) CreateSnapshot

CreateSnapshot

func (*ControllerService) CreateVolume

CreateVolume creates the disk for the request, unattached from any VM

func (*ControllerService) DeleteSnapshot

DeleteSnapshot

func (*ControllerService) DeleteVolume

DeleteVolume removed the disk from oVirt

func (*ControllerService) GetCapacity

GetCapacity

func (*ControllerService) ListSnapshots

ListSnapshots

func (*ControllerService) ListVolumes

ListVolumes

func (*ControllerService) ValidateVolumeCapabilities

ValidateVolumeCapabilities

type IdentityService

type IdentityService struct {
	// contains filtered or unexported fields
}

IdentityService of ovirt-csi-driver

func (*IdentityService) GetPluginCapabilities

GetPluginCapabilities declares the plugins capabilities

func (*IdentityService) GetPluginInfo

GetPluginInfo returns the vendor name and version - set in build time

func (*IdentityService) Probe

func (i *IdentityService) Probe(ctx context.Context, request *csi.ProbeRequest) (*csi.ProbeResponse, error)

Probe checks the state of the connection to ovirt-engine

type NodeService

type NodeService struct {
	// contains filtered or unexported fields
}

func (*NodeService) NodeGetInfo

func (*NodeService) NodePublishVolume

func (*NodeService) NodeStageVolume

func (*NodeService) NodeUnpublishVolume

func (*NodeService) NodeUnstageVolume

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()
}

Defines Non blocking GRPC server interfaces

func NewNonBlockingGRPCServer

func NewNonBlockingGRPCServer() NonBlockingGRPCServer

type OvirtCSIDriver

type OvirtCSIDriver struct {
	*IdentityService
	*ControllerService
	*NodeService

	Client client.Client
	// contains filtered or unexported fields
}

func NewOvirtCSIDriver

func NewOvirtCSIDriver(ovirtClient *ovirt.Client, client client.Client, nodeId string) *OvirtCSIDriver

NewOvirtCSIDriver creates a driver instance

func (*OvirtCSIDriver) Run

func (driver *OvirtCSIDriver) Run(endpoint string)

Run will initiate the grpc services Identity, Controller, and Node.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL