Documentation
¶
Index ¶
Constants ¶
View Source
const ( PodNameContextKey = "csi.storage.k8s.io/pod.name" PodNamespaceContextKey = "csi.storage.k8s.io/pod.namespace" // CSIVolumeAttributeModeField used for identifying the origin of the NodePublishVolume request CSIVolumeAttributeModeField = "mode" CSIVolumeAttributeDynakubeField = "dynakube" CSIVolumeAttributeRetryTimeout = "retryTimeout" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Publisher ¶
type Publisher interface {
PublishVolume(ctx context.Context, volumeCfg *VolumeConfig) (*csi.NodePublishVolumeResponse, error)
}
type VolumeConfig ¶
type VolumeConfig struct {
VolumeInfo
PodName string
PodNamespace string
Mode string
DynakubeName string
RetryTimeout time.Duration
}
Represents the config needed to mount a volume
func ParseNodePublishVolumeRequest ¶
func ParseNodePublishVolumeRequest(req *csi.NodePublishVolumeRequest) (VolumeConfig, error)
Transforms the NodePublishVolumeRequest into a VolumeConfig
type VolumeInfo ¶
Represents the basic information about a volume
func ParseNodeUnpublishVolumeRequest ¶
func ParseNodeUnpublishVolumeRequest(req *csi.NodeUnpublishVolumeRequest) (VolumeInfo, error)
Transforms the NodeUnpublishVolumeRequest into a VolumeInfo
Click to show internal directories.
Click to hide internal directories.