Documentation ¶
Index ¶
Constants ¶
View Source
const ( // KeyStoragePool is the key used to get the storagepool name from the // volume create parameters map KeyStoragePool = "storagepool" // DefaultVolumeSizeKiB is default volume size to create on a scaleIO // cluster when no size is given, expressed in KiB DefaultVolumeSizeKiB = 16 * kiBytesInGiB // VolSizeMultipleGiB is the volume size that ScaleIO creates volumes as // a multiple of, meaning that all volume sizes are a multiple of this // number VolSizeMultipleGiB = 8 )
View Source
const ( // EnvEndpoint is the name of the enviroment variable used to set the // HTTP endpoint of the ScaleIO Gateway EnvEndpoint = "X_CSI_SCALEIO_ENDPOINT" // EnvUser is the name of the enviroment variable used to set the // username when authenticating to the ScaleIO Gateway EnvUser = "X_CSI_SCALEIO_USER" // EnvPassword is the name of the enviroment variable used to set the // user's password when authenticating to the ScaleIO Gateway EnvPassword = "X_CSI_SCALEIO_PASSWORD" // EnvInsecure is the name of the enviroment variable used to specify // that the ScaleIO Gateway's certificate chain and host name should not // be verified EnvInsecure = "X_CSI_SCALEIO_INSECURE" // EnvSystemName is the name of the enviroment variable used to set the // name of the ScaleIO system to interact with EnvSystemName = "X_CSI_SCALEIO_SYSTEMNAME" // EnvSDCGUID is the name of the enviroment variable used to set the // GUID of the SDC. This is only used by the Node Service, and removes // a need for calling an external binary to retrieve the GUID EnvSDCGUID = "X_CSI_SCALEIO_SDCGUID" // EnvThick is the name of the enviroment variable used to specify // that thick provisioning should be used when creating volumes EnvThick = "X_CSI_SCALEIO_THICKPROVISIONING" )
View Source
const ( // Name is the name of the CSI plug-in. Name = "com.thecodeteam.scaleio" // VendorVersion is the version returned by GetPluginInfo. VendorVersion = "0.1.0" // SupportedVersions is a list of supported CSI versions. SupportedVersions = "0.1.0" // KeyThickProvisioning is the key used to get a flag indicating that // a volume should be thick provisioned from the volume create params KeyThickProvisioning = "thickprovisioning" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service interface { csi.ControllerServer csi.IdentityServer csi.NodeServer gocsi.IdempotencyProvider BeforeServe(context.Context, *csp.StoragePlugin, net.Listener) error }
Service is the CSI Mock service provider.
Click to show internal directories.
Click to hide internal directories.