Documentation ¶
Index ¶
Constants ¶
View Source
const TopologyKeyNode = "topology.hostpath.csi/node"
Variables ¶
This section is empty.
Functions ¶
func NewHostPathDriver ¶
func NewNonBlockingGRPCServer ¶
func NewNonBlockingGRPCServer() *nonBlockingGRPCServer
Types ¶
type Capacity ¶ added in v1.6.0
Capacity simulates linear storage of certain types ("fast", "slow"). When volumes of those types get created, they must allocate storage (which can fail!) and that storage must be freed again when volumes get destroyed.
Available capacity is configurable with a command line flag -capacity <type>=<size> where <type> is a string and <size> is a quantity (1T, 1Gi). More than one of those flags can be used.
func (Capacity) Alloc ¶ added in v1.6.0
Alloc reserves a certain amount of bytes. Errors are usable as result of gRPC calls. Empty kind means that any large enough one is fine.
func (Capacity) Check ¶ added in v1.6.0
Check reports available capacity for a certain kind. If empty, it reports the maximum capacity.
type ContainerFileSystem ¶ added in v1.5.0
type ContainerFileSystem struct {
Children []MountPointInfo `json:"children"`
}
type FileSystems ¶ added in v1.5.0
type FileSystems struct {
Filsystem []ContainerFileSystem `json:"filesystems"`
}
type MountPointInfo ¶ added in v1.5.0
type MountPointInfo struct { Target string `json:"target"` Source string `json:"source"` FsType string `json:"fstype"` Options string `json:"options"` ContainerFileSystem []MountPointInfo `json:"children,omitempty"` }
Click to show internal directories.
Click to hide internal directories.