Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "rookflex", Short: "Rook Flex volume plugin", SilenceErrors: true, SilenceUsage: true, }
RootCmd the rookflex volume plugin cobra root command
Functions ¶
This section is empty.
Types ¶
type DriverCapabilities ¶ added in v0.9.2
type DriverCapabilities struct { Attach bool `json:"attach"` SELinuxRelabel bool `json:"selinuxRelabel"` SupportsMetrics bool `json:"supportsMetrics"` FSGroup bool `json:"fsGroup"` RequiresFSResize bool `json:"requiresFSResize"` }
FIX: After we move to the k8s 1.13 dependencies, we can remove this type and reference the type in k8s.io/kubernetes/pkg/volume/flexvolume/driver-call.go
type DriverStatus ¶ added in v0.9.2
type DriverStatus struct { // Status of the callout. One of "Success", "Failure" or "Not supported". Status string `json:"status"` // Reason for success/failure. Message string `json:"message,omitempty"` // Path to the device attached. This field is valid only for attach calls. // ie: /dev/sdx DevicePath string `json:"device,omitempty"` // Cluster wide unique name of the volume. VolumeName string `json:"volumeName,omitempty"` // Represents volume is attached on the node Attached bool `json:"attached,omitempty"` // Returns capabilities of the driver. // By default we assume all the capabilities are supported. // If the plugin does not support a capability, it can return false for that capability. Capabilities *DriverCapabilities `json:",omitempty"` // Returns the actual size of the volume after resizing is done, the size is in bytes. ActualVolumeSize int64 `json:"volumeNewSize,omitempty"` }
FIX: After we move to the k8s 1.13 dependencies, we can remove this type and reference the type in k8s.io/kubernetes/pkg/volume/flexvolume/driver-call.go
Click to show internal directories.
Click to hide internal directories.