Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Optional config. ConfigHost = "host" ConfigPort = "port" ConfigProtocol = "protocol" ConfigConnectionRetries = "connection_retries" ConfigLogLevel = "log_level" // Required config. ConfigAccessKeyID = "access_key_id" ConfigSecretAccessKey = "secret_access_key" // Runtime config. ConfigZone = "zone" )
Available config.
View Source
const ( Name = "qsctl" Description = "Advanced command line tool for QingStor." )
Name and description for qsctl.
View Source
const ( DirectionLocalToRemote = "local_to_remote" DirectionRemoteToLocal = "remote_to_local" )
Available direction types.
View Source
const ( // MaximumMultipartNumber is the max multipart number. MaximumMultipartNumber = 10000 // MaximumPartSize is the max part size for single part, 5GB. MaximumPartSize = 5 * 1024 * 1024 * 1024 // MaximumObjectSize is the max object size for a single object, 50TB. MaximumObjectSize = MaximumMultipartNumber * MaximumPartSize // MaximumAutoMultipartSize is the size limit for auto part size detect. MaximumAutoMultipartSize = MaximumPartSize / 5 // DefaultPartSize is the default part size, 128MB. DefaultPartSize = 128 * 1024 * 1024 )
View Source
const DirectoryContentType = "application/x-directory"
DirectoryContentType is the content type qingstor used for directory.
View Source
const Version = "2.0.0-alpha.7"
Version is the version for qsctl
Variables ¶
View Source
var ( // ErrorFlowInvalid returned while flow is invalid. ErrorFlowInvalid = errors.New("flow is invalid") // ErrorActionNotImplemented returned while current is not implemented. ErrorActionNotImplemented = errors.New("action not implemented") // ErrorExpectSizeRequired returned while expect size is required but not given. ErrorExpectSizeRequired = errors.New("expect-size is required") // ErrorByteSizeInvalid returned while byte size is invalid. ErrorByteSizeInvalid = errors.New("byte size is invalid") // ErrorZoneRequired returned while zone is required but not given. ErrorZoneRequired = errors.New("zone is required") // ErrorExternalServiceError returned while external service error happened. ErrorExternalServiceError = errors.New("external service error happened") // ErrorQsPathAccessForbidden returned while qingstor path access is forbidden. ErrorQsPathAccessForbidden = errors.New("qingstor path access forbidden") // ErrorQsPathNotFound returned while qingstor path is not found. ErrorQsPathNotFound = errors.New("qingstor path not found") // ErrorQsPathInvalid returned while qs-path is invalid. ErrorQsPathInvalid = errors.New("qingstor path invalid") // ErrorQsPathObjectKeyRequired returned while object key is required but not given. ErrorQsPathObjectKeyRequired = errors.New("qingstor path object key is required") // ErrorFileTooLarge returned while file is too large. ErrorFileTooLarge = errors.New("file too large") // ErrorFileNotExist returned while file is not found. ErrorFileNotExist = errors.New("file not exist") )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.