Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Name is the name of the CSI plugin Name = "com.thecodeteam.blockdevices" // SupportedVersions is a list of supported CSI versions SupportedVersions = "0.1.0" )
View Source
const ( // EnvBlockDevDir is the name of the environment variable used to // specify the directory to search for valid block device to be used // by the plugin EnvBlockDevDir = "X_CSI_BD_DEVDIR" )
Variables ¶
View Source
var Manifest = map[string]string{ "url": "https://github.com/rexray/csi-blockdevices", "semver": core.SemVer, "commit": core.CommitSha32, "formed": core.CommitTime.Format(time.RFC1123), }
Manifest is the SP's manifest.
Functions ¶
This section is empty.
Types ¶
type Device ¶
Device is a struct for holding details about a block device
func GetDevice ¶
GetDevice returns a Device struct with info about the given device, or an error if it doesn't exist or is not a block device
func GetDeviceInDir ¶
GetDeviceInDir returns a Device struct with info about the given device, by looking for name in dir.
func ListDevices ¶
ListDevices returns a slice of Device for all valid blockdevices found in the given device directory
type Service ¶
type Service interface { csi.ControllerServer csi.IdentityServer csi.NodeServer BeforeServe(context.Context, *gocsi.StoragePlugin, net.Listener) error }
Service is the CSI Network File System (NFS) service provider.
Click to show internal directories.
Click to hide internal directories.