model

package
v1.0.192 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompleteMultipartUploadInput added in v1.0.190

type CompleteMultipartUploadInput struct {
	UploadCommonInfo *UploadCommonInfo
	UploadId         string
	PartList         []*UploadPartResponse
}

type CreateMultipartUploadInput added in v1.0.190

type CreateMultipartUploadInput struct {
	UploadCommonInfo *UploadCommonInfo
}

type InitPartPayLoad

type InitPartPayLoad struct {
	UploadID string `json:"uploadID"`
}

type InitPartResponse

type InitPartResponse struct {
	UploadPartCommonResponse
	PayLoad InitPartPayLoad `json:"payload,omitempty"`
}

type MergePartPayLoad

type MergePartPayLoad struct {
	Hash string `json:"hash"`
	Key  string `json:"key"`
}

type Meta

type Meta struct {
	ObjectContentType string
}

type PutObjectInput added in v1.0.190

type PutObjectInput struct {
	UploadCommonInfo *UploadCommonInfo
	Data             []byte
}

type UploadAuthOpt added in v1.0.151

type UploadAuthOpt func(option *UploadAuthOption)

type UploadAuthOption added in v1.0.151

type UploadAuthOption struct {
	KeyPtn       string
	SpaceNames   []string
	UploadPolicy *UploadPolicy
}

type UploadCommonInfo added in v1.0.190

type UploadCommonInfo struct {
	Auth               string
	Hosts              []string
	Oid                string
	Client             *http.Client
	StorageClass       int32
	SessionKey         string
	PreferredHostIndex int
}

type UploadMergeResponse

type UploadMergeResponse struct {
	UploadPartCommonResponse
	PayLoad MergePartPayLoad `json:"payload,omitempty"`
}

type UploadPartCommon

type UploadPartCommon struct {
	TosHost           string
	Oid               string
	Auth              string
	ObjectContentType string
	ChunkSize         int64
}

type UploadPartCommonResponse

type UploadPartCommonResponse struct {
	Version string          `json:"Version"`
	Success int             `json:"success,omitempty"`
	Error   UploadPartError `json:"error"`
}

type UploadPartError

type UploadPartError struct {
	Code      int    `json:"code"`
	Error     string `json:"error"`
	ErrorCode int    `json:"error_code"`
	Message   string `json:"message"`
}

type UploadPartInput added in v1.0.190

type UploadPartInput struct {
	UploadCommonInfo *UploadCommonInfo
	PartNumber       int64
	UploadId         string
	Data             []byte
}

type UploadPartPayLoad

type UploadPartPayLoad struct {
	Uploadid   string `json:"uploadid"`
	PartNumber string `json:"part_number"`
	Crc32      string `json:"crc32"`
	Etag       string `json:"etag"`
	Meta       Meta   `json:"meta"`
}

type UploadPartResponse

type UploadPartResponse struct {
	UploadPartCommonResponse
	PayLoad    UploadPartPayLoad `json:"payload,omitempty"`
	PartNumber int
	CheckSum   string
}

type UploadPolicy added in v1.0.151

type UploadPolicy struct {
	ContentTypeBlackList []string `json:"ContentTypeBlackList,omitempty"` // 上传文件Content-Type黑名单
	ContentTypeWhiteList []string `json:"ContentTypeWhiteList,omitempty"` // 上传文件Content-Type白名单,建议不和黑名单同时使用
	FileSizeUpLimit      string   `json:"FileSizeUpLimit,omitempty"`      // 上传文件大小上限
	FileSizeBottomLimit  string   `json:"FileSizeBottomLimit,omitempty"`  // 上传文件大小下限
}

type VodUploadFuncRequest added in v1.0.103

type VodUploadFuncRequest struct {
	FilePath          string
	Rd                io.Reader
	Size              int64
	ParallelNum       int
	SpaceName         string
	FileType          string
	FileName          string
	FileExtension     string
	StorageClass      int32
	ClientNetWorkMode string
	ClientIDCMode     string
	ExpireTime        string
	UploadHostPrefer  string
	ChunkSize         int64
}

type VodUploadMediaInnerFuncRequest added in v1.0.103

type VodUploadMediaInnerFuncRequest struct {
	FilePath          string
	Rd                io.Reader
	Size              int64
	ParallelNum       int
	SpaceName         string
	FileType          string
	CallbackArgs      string
	Funcs             string
	FileName          string
	FileExtension     string
	StorageClass      int32
	VodUploadSource   string
	ClientNetWorkMode string
	ClientIDCMode     string
	ExpireTime        string
	UploadHostPrefer  string
	ChunkSize         int64
}

type VpcUploadPartInfo added in v1.0.181

type VpcUploadPartInfo struct {
	PartNumber int    `json:"PartNumber"`
	ETag       string `json:"ETag"`
}

type VpcUploadPartsInfo added in v1.0.181

type VpcUploadPartsInfo struct {
	Parts []*VpcUploadPartInfo `json:"Parts"`
}

Jump to

Keyboard shortcuts

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