Documentation ¶
Index ¶
- Constants
- func CreateHPV(volID string) *hostPathVolume
- func NewHostPathDriver(root, volMapRoot, driverName, nodeID, endpoint string, maxVolumesPerNode int64, ...) (*hostPath, error)
- func NewIdentityServer(name, version string) *identityServer
- func NewNodeServer(hp *hostPath) *nodeServer
- func NewNonBlockingGRPCServer() *nonBlockingGRPCServer
- func ProcessFileSystemError(obj runtime.Object, err error)
- type HostPathDriver
- type Payload
Constants ¶
View Source
const ( // Directory where data for volumes are persisted. // This is ephemeral to facilitate our per-pod, tmpfs, // no bind mount, approach. DataRoot = "/csi-data-dir" // Directory where we persist `hostPathVolumes` // This is a hostpath volume on the local node // to maintain state across restarts of the DaemonSet VolumeMapRoot = "/csi-volumes-map" VolumeMapFile = "volumemap.json" )
View Source
const ( TopologyKeyNode = "topology.hostpath.csi/node" CSIPodName = "csi.storage.k8s.io/pod.name" CSIPodNamespace = "csi.storage.k8s.io/pod.namespace" CSIPodUID = "csi.storage.k8s.io/pod.uid" CSIPodSA = "csi.storage.k8s.io/serviceAccount.name" CSIEphemeral = "csi.storage.k8s.io/ephemeral" )
Variables ¶
This section is empty.
Functions ¶
func NewHostPathDriver ¶
func NewIdentityServer ¶
func NewIdentityServer(name, version string) *identityServer
func NewNodeServer ¶
func NewNodeServer(hp *hostPath) *nodeServer
func NewNonBlockingGRPCServer ¶
func NewNonBlockingGRPCServer() *nonBlockingGRPCServer
func ProcessFileSystemError ¶
Types ¶
type HostPathDriver ¶
type HostPathDriver interface {
// contains filtered or unexported methods
}
Click to show internal directories.
Click to hide internal directories.