constants

package
v2.0.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2019 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Optional config.
	ConfigHost     = "host"
	ConfigPort     = "port"
	ConfigProtocol = "protocol"
	ConfigLogLevel = "log_level"

	// Required config.
	ConfigAccessKeyID     = "access_key_id"
	ConfigSecretAccessKey = "secret_access_key"
)

Available config.

View Source
const (
	DefaultHost     = "qingstor.com"
	DefaultPort     = "443"
	DefaultProtocol = "https"
	DefaultLogLevel = "info"
)

Default config values.

View Source
const (
	// BenchFlag represents the flag bench
	BenchFlag = "bench"
	// DeleteFlag represents the flag delete
	DeleteFlag = "delete"
	// ExpectSizeFlag represents the flag expect-size
	ExpectSizeFlag = "expect-size"
	// ExpireFlag represents the flag expire
	ExpireFlag = "expire"
	// ForceFlag represents the flag force
	ForceFlag = "force"
	// FormatFlag represents the flag format
	FormatFlag = "format"
	// HumanReadableFlag represents the flag human-readable
	HumanReadableFlag = "human-readable"
	// LongFormatFlag represents the flag long-format
	LongFormatFlag = "long-format"
	// MaximumMemoryContentFlag represents the flag maximum-memory-content
	MaximumMemoryContentFlag = "maximum-memory-content"
	// RecursiveFlag represents the flag recursive
	RecursiveFlag = "recursive"
	// ReverseFlag represents the flag reverse
	// ReverseFlag = "reverse"
	// WholeFileFlag represents the flag whole-file
	WholeFileFlag = "whole-file"
	// ZoneFlag represents the flag zone
	ZoneFlag = "zone"
)

all flags' input here

View Source
const (
	Name        = "qsctl"
	Description = "Advanced command line tool for QingStor."
)

Name and description for qsctl.

View Source
const (
	RFC822          = "Mon, 02 Jan 2006 15:04:05 GMT"
	LsDefaultFormat = "Jan 02 15:04"
)

Supported time layouts

View Source
const (
	// ACLDirectory is the acl of qingstor x-directory
	ACLDirectory = "drwxr-xr-x"
	// ACLObject is the acl of qingstor object
	ACLObject = "-rwxr-xr-x"
)
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
	// DefaultPresignExpire is the default expire seconds.
	DefaultPresignExpire = 300
)
View Source
const Version = "2.0.0-beta.1"

Version is the version for qsctl

Variables

This section is empty.

Functions

This section is empty.

Types

type FlowType

type FlowType uint8

FlowType is the type for flow

const (
	FlowInvalid FlowType = iota
	FlowAtRemote
	FlowToLocal
	FlowToRemote
)

All available flow

type ListType

type ListType uint8

ListType is the type for list

const (
	ListTypeInvalid ListType = iota
	ListTypeBucket
	ListTypeKey
)

All available list type

Jump to

Keyboard shortcuts

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