Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
Driver is a storagedriver.StorageDriver implementation backed by tencentyun cos
func FromParameters ¶
FromParameters constructs a new Driver with a given parameters map Required parameters: - SecretID - SecretKey - Bucket - Region
func New ¶
func New(params DriverParameters) (*Driver, error)
New constructs a new Driver with the given params
type DriverParameters ¶
type DriverParameters struct { SecretID string SecretKey string Bucket string AppId string Region string CosDomain string Secure bool ChunkSize int64 RootDirectory string StorageManagerAddress string RedirectDarwin bool CdnEnable bool CdnDomain string CdnKey string CdnExcludeCIDRs string CciAddress string CheckCvmIp bool // 是否开启了 COS 的全球加速 AccelerateEnabled bool }
DriverParameters A struct that encapsulates all of the driver parameters after all values have been set
Click to show internal directories.
Click to hide internal directories.