Documentation ¶
Index ¶
- Constants
- 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
- type DataSourceType
- 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 FileSyncHTTPClientTimeout = 5 // TODO: use 5 seconds as default, need to refactor it SendingLimit = 3 BackingImageFileName = "backing" TmpFileSuffix = ".tmp" BackingImageTmpFileName = BackingImageFileName + TmpFileSuffix )
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") )
View Source
const ( DataSourceTypeDownloadParameterURL = "url" DataSourceTypeFileType = "file-type" DataSourceTypeExportFromVolumeParameterVolumeSize = "volume-size" DataSourceTypeExportFromVolumeParameterSnapshotName = "snapshot-name" DataSourceTypeExportFromVolumeParameterSenderAddress = "sender-address" DataSourceTypeExportFromVolumeParameterExportTypeRAW = "raw" DataSourceTypeExportFromVolumeParameterExportTypeQCOW2 = "qcow2" SyncingFileTypeEmpty = "" SyncingFileTypeRaw = "raw" SyncingFileTypeQcow2 = "qcow2" )
Variables ¶
This section is empty.
Functions ¶
func GetBackingImageFilePath ¶
func GetDataSourceFileName ¶
func GetDataSourceFilePath ¶
Types ¶
type DataSourceType ¶
type DataSourceType string
Click to show internal directories.
Click to hide internal directories.