hostpath

package
v0.0.0-...-7662ffe Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2020 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const TopologyKeyNode = "topology.hostpath.csi/node"

Variables

This section is empty.

Functions

func NewControllerServer

func NewControllerServer(ephemeral bool, nodeID string) *controllerServer

func NewHostPathDriver

func NewHostPathDriver(driverName, nodeID, endpoint string, ephemeral bool, maxVolumesPerNode int64, version string) (*hostPath, error)

func NewNodeServer

func NewNodeServer(nodeId string, ephemeral bool, maxVolumesPerNode int64) *nodeServer

NewNodeServer returns as helper object

func NewNonBlockingGRPCServer

func NewNonBlockingGRPCServer() *nonBlockingGRPCServer

Types

type IdentityServer

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

IdentityServer is object for identity server

func NewIdentityServer

func NewIdentityServer(name, version string) *IdentityServer

NewIdentityServer returns helper object of identiy server

func (*IdentityServer) GetPluginCapabilities

GetPluginCapabilities returns the capabilities of the plugin. Currently it reports whether the plugin has the ability of server the Controller interface. The Container Orchestration(K8s...) calls the Controller interface methods depending on whether this method returns the capability or not.

func (*IdentityServer) GetPluginInfo

GetPluginInfo need to return the version and name of the plugin

func (*IdentityServer) Probe

Probe is called by the Container Orchestration(K8s...) just to check whether the plugin is running or not. This method doesn't need to return anything. Currently the spec doesn't dictate what you should return either. Hence return an empty response.

Jump to

Keyboard shortcuts

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