webdav

package
v0.0.0-...-680a682 Latest Latest
Warning

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

Go to latest
Published: May 11, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultDriverName = "webdav.csi.io"
)

Variables

This section is empty.

Functions

func GetVersionYAML

func GetVersionYAML(driverName string) (string, error)

GetVersionYAML returns the version information of the driver

func MakeVolumeId

func MakeVolumeId(webdavSharePath, volumeName string) string

func ParseEndpoint

func ParseEndpoint(ep string) (string, string, error)

func ParseVolumeId

func ParseVolumeId(volumeId string) (webdavSharePath, subDir string, err error)

Types

type ControllerServer

type ControllerServer struct {
	*Driver
	// contains filtered or unexported fields
}

func NewControllerServer

func NewControllerServer(d *Driver, mounter mount.Interface) *ControllerServer

func (*ControllerServer) ControllerExpandVolume

ControllerExpandVolume implements csi.ControllerServer.

func (*ControllerServer) ControllerGetCapabilities

ControllerGetCapabilities implements csi.ControllerServer.

func (*ControllerServer) ControllerGetVolume

ControllerGetVolume implements csi.ControllerServer.

func (*ControllerServer) ControllerModifyVolume

ControllerModifyVolume implements csi.ControllerServer.

func (*ControllerServer) ControllerPublishVolume

ControllerPublishVolume implements csi.ControllerServer.

func (*ControllerServer) ControllerUnpublishVolume

ControllerUnpublishVolume implements csi.ControllerServer.

func (*ControllerServer) CreateSnapshot

CreateSnapshot implements csi.ControllerServer.

func (*ControllerServer) CreateVolume

CreateVolume implements csi.ControllerServer.

func (*ControllerServer) DeleteSnapshot

DeleteSnapshot implements csi.ControllerServer.

func (*ControllerServer) DeleteVolume

DeleteVolume implements csi.ControllerServer.

func (*ControllerServer) GetCapacity

GetCapacity implements csi.ControllerServer.

func (*ControllerServer) ListSnapshots

ListSnapshots implements csi.ControllerServer.

func (*ControllerServer) ListVolumes

ListVolumes implements csi.ControllerServer.

func (*ControllerServer) ValidateVolumeCapabilities

ValidateVolumeCapabilities implements csi.ControllerServer.

type Driver

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

func NewDriver

func NewDriver(opt *DriverOpt) *Driver

func (*Driver) AddControllerServiceCapabilities

func (d *Driver) AddControllerServiceCapabilities(cl []csi.ControllerServiceCapability_RPC_Type)

func (*Driver) AddNodeServiceCapabilities

func (d *Driver) AddNodeServiceCapabilities(nl []csi.NodeServiceCapability_RPC_Type)

func (*Driver) Run

func (d *Driver) Run()

type DriverOpt

type DriverOpt struct {
	Name                  string
	NodeID                string
	Endpoint              string
	MountPermissions      uint64
	WorkingMountDir       string
	DefaultOnDeletePolicy string
}

type IdentityServer

type IdentityServer struct {
	Driver *Driver
}

func NewIdentityServer

func NewIdentityServer(d *Driver) *IdentityServer

func (*IdentityServer) GetPluginInfo

func (*IdentityServer) Probe

type NodeServer

type NodeServer struct {
	Driver *Driver
	// contains filtered or unexported fields
}

func NewNodeServer

func NewNodeServer(d *Driver, mounter mount.Interface) *NodeServer

func (*NodeServer) NodeExpandVolume

NodeExpandVolume implements csi.NodeServer.

func (*NodeServer) NodeGetCapabilities

NodeGetCapabilities implements csi.NodeServer.

func (*NodeServer) NodeGetInfo

NodeGetInfo implements csi.NodeServer.

func (*NodeServer) NodeGetVolumeStats

NodeGetVolumeStats implements csi.NodeServer.

func (*NodeServer) NodePublishVolume

NodePublishVolume implements csi.NodeServer.

func (*NodeServer) NodeStageVolume

NodeStageVolume implements csi.NodeServer.

func (*NodeServer) NodeUnpublishVolume

NodeUnpublishVolume implements csi.NodeServer.

func (*NodeServer) NodeUnstageVolume

NodeUnstageVolume implements csi.NodeServer.

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 VersionInfo

type VersionInfo struct {
	DriverName    string `json:"Driver Name"`
	DriverVersion string `json:"Driver Version"`
	GitCommit     string `json:"Git Commit"`
	BuildDate     string `json:"Build Date"`
	GoVersion     string `json:"Go Version"`
	Compiler      string `json:"Compiler"`
	Platform      string `json:"Platform"`
}

VersionInfo holds the version information of the driver

func GetVersion

func GetVersion(driverName string) VersionInfo

GetVersion returns the version information of the driver

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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