Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metadata ¶
type Metadata struct { // VolumeID as set in Node{Un,}PublishVolumeRequests. VolumeID string `json:"volumeID"` // TargetPath is the path bind mounted into the target container (e.g. in // Kubernetes, this is within the kubelet's 'pods' directory). TargetPath string `json:"targetPath"` // System-specific attributes extracted from the NodePublishVolume request. // These are sourced from the VolumeContext. VolumeContext map[string]string `json:"volumeContext,omitempty"` }
Metadata contains metadata about a particular CSI volume and its contents. It is safe to be serialised to disk for later reading.
func FromNodePublishVolumeRequest ¶
func FromNodePublishVolumeRequest(request *csi.NodePublishVolumeRequest) Metadata
FromNodePublishVolumeRequest constructs a Metadata from a NodePublishVolumeRequest.
Click to show internal directories.
Click to hide internal directories.