types

package
v1.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

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")
	DataSourceTypeRestore          = DataSourceType("restore")
)
View Source
const (
	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"
)

Variables

This section is empty.

Functions

func GetBackingImageDirectory

func GetBackingImageDirectory(diskPath, biName, biUUID string) string

func GetBackingImageDirectoryName

func GetBackingImageDirectoryName(biName, biUUID string) string

func GetBackingImageFilePath

func GetBackingImageFilePath(diskPath, biName, biUUID string) string

func GetBackingImageNameFromFilePath

func GetBackingImageNameFromFilePath(biFilePath, biUUID string) string

func GetDataSourceFileName

func GetDataSourceFileName(biName, biUUID string) string

func GetDataSourceFilePath

func GetDataSourceFilePath(diskPath, biName, biUUID string) string

Types

type DataSourceType

type DataSourceType string

type State

type State string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL