Documentation ¶
Index ¶
- Constants
- func BackingImageMapper(uuid string) string
- func GetBackingImageDirectory(diskPath, biName, biUUID string) string
- func GetBackingImageDirectoryName(biName, biUUID string) string
- func GetBackingImageFilePath(diskPath, biName, biUUID string) string
- func GetBackingImageNameFromFilePath(biFilePath, biUUID string) string
- func GetDataSourceFileName(biName, biUUID string) string
- func GetDataSourceFilePath(diskPath, biName, biUUID string) string
- func GetLuksBackingImageName(uuid string) string
- type DataSourceType
- type EncryptionType
- type State
Constants ¶
View Source
const ( BackingImageManagerDirectoryName = "backing-images" DiskPathInContainer = "/data/" DataSourceDirectoryName = "/tmp/" DefaultSectorSize = 512 DefaultManagerPort = 8000 DefaultDataSourceServerPort = 8000 DefaultSyncServerPort = 8001 DefaultVolumeExportReceiverPort = 8002 GRPCServiceTimeout = 1 * time.Minute HTTPTimeout = 4 * time.Second MonitorInterval = 3 * time.Second CommandExecutionTimeout = 10 * time.Second FileSyncHTTPClientTimeout = 5 // TODO: use 5 seconds as default, need to refactor it SendingLimit = 3 BackingImageFileName = "backing" TmpFileSuffix = ".tmp" BackingImageTmpFileName = BackingImageFileName + TmpFileSuffix MapperFilePathPrefix = "/dev/mapper" EncryptionMetaSize = 16 * 1024 * 1024 // 16MB )
View Source
const ( StatePending = State("pending") StateStarting = State("starting") StateInProgress = State("in-progress") StateFailed = State("failed") StateFailedAndCleanUp = State("failed-and-cleanup") StateUnknown = State("unknown") StateReady = State("ready") StateReadyForTransfer = State("ready-for-transfer") )
View Source
const ( DataSourceTypeDownload = DataSourceType("download") DataSourceTypeUpload = DataSourceType("upload") DataSourceTypeExportFromVolume = DataSourceType("export-from-volume") DataSourceTypeRestore = DataSourceType("restore") DataSourceTypeClone = DataSourceType("clone") )
View Source
const ( DataSourceTypeCloneParameterBackingImage = "backing-image" DataSourceTypeCloneParameterBackingImageUUID = "backing-image-uuid" DataSourceTypeCloneParameterEncryption = "encryption" DataSourceTypeDownloadParameterURL = "url" DataSourceTypeRestoreParameterBackupURL = "backup-url" DataSourceTypeRestoreParameterConcurrentLimit = "concurrent-limit" DataSourceTypeFileType = "file-type" DataSourceTypeExportFromVolumeParameterVolumeSize = "volume-size" DataSourceTypeExportFromVolumeParameterSnapshotName = "snapshot-name" DataSourceTypeExportFromVolumeParameterSenderAddress = "sender-address" DataSourceTypeExportFromVolumeParameterFileSyncHTTPClientTimeout = "file-sync-http-client-timeout" DataSourceTypeExportFromVolumeParameterExportTypeRAW = "raw" DataSourceTypeExportFromVolumeParameterExportTypeQCOW2 = "qcow2" SyncingFileTypeEmpty = "" SyncingFileTypeRaw = "raw" SyncingFileTypeQcow2 = "qcow2" )
View Source
const ( EncryptionTypeEncrypt = EncryptionType("encrypt") EncryptionTypeDecrypt = EncryptionType("decrypt") EncryptionTypeIgnore = EncryptionType("ignore") )
Variables ¶
This section is empty.
Functions ¶
func BackingImageMapper ¶ added in v1.7.0
func GetBackingImageFilePath ¶
func GetDataSourceFileName ¶
func GetDataSourceFilePath ¶
func GetLuksBackingImageName ¶ added in v1.7.0
Types ¶
type DataSourceType ¶
type DataSourceType string
type EncryptionType ¶ added in v1.7.0
type EncryptionType string
Click to show internal directories.
Click to hide internal directories.