Documentation ¶
Index ¶
- Constants
- type ActivateRequest
- type ActivateResponse
- type AfterDetachRequest
- type AttachRequest
- type AttachResponse
- type BrokerConfig
- type ConnectionInfo
- type CreateVolumeRequest
- type CredentialInfo
- type DetachRequest
- type DockerGetResponse
- type FlexVolumeAttachRequest
- type FlexVolumeDetachRequest
- type FlexVolumeMountRequest
- type FlexVolumeResponse
- type FlexVolumeUnmountRequest
- type GenericRequest
- type GenericResponse
- type GetConfigResponse
- type GetResponse
- type GetVolumeConfigRequest
- type GetVolumeRequest
- type ListResponse
- type ListVolumesRequest
- type MountRequest
- type MountResponse
- type Mounter
- type RemoveVolumeRequest
- type RestConfig
- type ScbeConfig
- type ScbeRemoteConfig
- type SpectrumNfsRemoteConfig
- type SpectrumScaleConfig
- type SshConfig
- type StorageClient
- type UbiquityDockerPluginConfig
- type UbiquityPluginConfig
- type UbiquityServerConfig
- type UbiquityServerConnectionInfo
- type UnmountRequest
- type Volume
Constants ¶
View Source
const ( SpectrumScale string = "spectrum-scale" SpectrumScaleNFS string = "spectrum-scale-nfs" SoftlayerNFS string = "softlayer-nfs" SCBE string = "scbe" )
View Source
const DefaultForScbeConfigParamDefaultFilesystem = "ext4" // if customer don't mention fstype, then the default is ext4
View Source
const DefaultForScbeConfigParamDefaultVolumeSize = "1" // if customer don't mention size, then the default is 1gb
View Source
const OptionNameForVolumeFsType = "fstype" // the option name of the fstype and also the key in the volumeConfig
View Source
const PathToMountUbiquityBlockDevices = "/ubiquity/%s" // %s is the WWN of the volume # TODO this should be moved to docker plugin side
View Source
const UbiquityInstanceNameMaxSize = 15
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActivateRequest ¶
type ActivateResponse ¶
type AfterDetachRequest ¶
type AfterDetachRequest struct {
VolumeConfig map[string]interface{}
}
type AttachRequest ¶
type AttachResponse ¶
type BrokerConfig ¶
type ConnectionInfo ¶
type ConnectionInfo struct { CredentialInfo CredentialInfo Port int ManagementIP string SkipVerifySSL bool }
type CreateVolumeRequest ¶
type CredentialInfo ¶
type DetachRequest ¶
type DockerGetResponse ¶
type FlexVolumeAttachRequest ¶
type FlexVolumeDetachRequest ¶
type FlexVolumeMountRequest ¶
type FlexVolumeResponse ¶
type FlexVolumeUnmountRequest ¶
type FlexVolumeUnmountRequest struct {
MountPath string `json:"mountPath"`
}
type GenericRequest ¶
type GenericRequest struct {
Name string
}
type GenericResponse ¶
type GenericResponse struct {
Err string
}
type GetConfigResponse ¶
type GetResponse ¶
type GetVolumeConfigRequest ¶
type GetVolumeConfigRequest struct {
Name string
}
type GetVolumeRequest ¶
type GetVolumeRequest struct {
Name string
}
type ListResponse ¶
type ListVolumesRequest ¶
type ListVolumesRequest struct { //TODO add filter Backends []string }
type MountRequest ¶
type MountResponse ¶
type Mounter ¶
type Mounter interface { Mount(mountRequest MountRequest) (string, error) Unmount(unmountRequest UnmountRequest) error ActionAfterDetach(request AfterDetachRequest) error }
type RemoveVolumeRequest ¶
type RemoveVolumeRequest struct {
Name string
}
type RestConfig ¶
type ScbeConfig ¶
type ScbeConfig struct { ConfigPath string // TODO consider to remove later ConnectionInfo ConnectionInfo DefaultService string // SCBE storage service to be used by default if not mentioned by plugin DefaultVolumeSize string // The default volume size in case not specified by user UbiquityInstanceName string // Prefix for the volume name in the storage side (max length 15 char) DefaultFilesystemType string // The default filesystem type to create on new provisioned volume during attachment to the host }
type ScbeRemoteConfig ¶ added in v0.4.0
type ScbeRemoteConfig struct {
SkipRescanISCSI bool
}
type SpectrumNfsRemoteConfig ¶
type SpectrumNfsRemoteConfig struct {
ClientConfig string
}
type SpectrumScaleConfig ¶
type SpectrumScaleConfig struct { DefaultFilesystemName string NfsServerAddr string SshConfig SshConfig RestConfig RestConfig ForceDelete bool }
TODO we should consider to move dedicated backend structs to the backend resource file instead of this one.
type StorageClient ¶
type StorageClient interface { Activate(activateRequest ActivateRequest) error CreateVolume(createVolumeRequest CreateVolumeRequest) error RemoveVolume(removeVolumeRequest RemoveVolumeRequest) error ListVolumes(listVolumeRequest ListVolumesRequest) ([]Volume, error) GetVolume(getVolumeRequest GetVolumeRequest) (Volume, error) GetVolumeConfig(getVolumeConfigRequest GetVolumeConfigRequest) (map[string]interface{}, error) Attach(attachRequest AttachRequest) (string, error) Detach(detachRequest DetachRequest) error }
type UbiquityPluginConfig ¶
type UbiquityPluginConfig struct { DockerPlugin UbiquityDockerPluginConfig LogPath string UbiquityServer UbiquityServerConnectionInfo SpectrumNfsRemoteConfig SpectrumNfsRemoteConfig ScbeRemoteConfig ScbeRemoteConfig Backends []string LogLevel string }
type UbiquityServerConfig ¶
type UbiquityServerConfig struct { Port int LogPath string ConfigPath string SpectrumScaleConfig SpectrumScaleConfig ScbeConfig ScbeConfig BrokerConfig BrokerConfig DefaultBackend string LogLevel string }
type UnmountRequest ¶
type UnmountRequest struct {
VolumeConfig map[string]interface{}
}
Click to show internal directories.
Click to hide internal directories.