Documentation ¶
Index ¶
- Constants
- type ErrorMsg
- type JobResult
- type OasClient
- func (o *OasClient) ArchiveToOas(vaultID, ossHost, bucket, path, desc string) (requestId, jobId string, err error)
- func (o *OasClient) DeleteArchive(vaultID, archiveId string) (string, error)
- func (o *OasClient) GetJobInfo(vaultID, jobId string) (requestId string, jr *JobResult, err error)
- func (o *OasClient) ListVaults(limit int, marker string) (requestId string, v *VaultsList, err error)
- func (o *OasClient) RecoverToOss(vaultID, archiveId, ossHost, bucket, path, desc string) (requestId, jobId string, err error)
- type VaultInfo
- type VaultsList
Constants ¶
View Source
const ( OasDefaultContentType = "application/octet-stream" OasDefaultSendBufferSize = 8192 OasDefaultGetBufferSize = 10 * 1024 * 1024 OasDefaultProvider = "OAS" OasHttpPort = 80 OasHttpsPort = 443 OasUseHttps = true OasNoHttps = false OasUserAgent = "gooas-OAS Go SDK" OasDescNoContent = "" OasJobStatusCodeSucceeded = "Succeeded" OasJobStatusCodeInProgress = "InProgress" OasJobStatusCodeFailed = "Failed" )
View Source
const (
OasDefineHeaderPrefix = "x-oas-"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorMsg ¶
type JobResult ¶
type JobResult struct { Action string `json:"Action"` ArchiveId string `json:"ArchiveId"` ArchiveSize int `json:"ArchiveSizeInBytes"` TreeEtag string `json:"TreeEtag"` ArchiveTreeEtag string `json:"ArchiveTreeEtag"` Completed bool `json:"Completed"` CompletionDate string `json:"CompletionDate"` CreationDate string `json:"CreationsDate"` InventorySize int `json:"InventorySizeInBytes"` JobDescription string `json:"JobDescription"` JobId string `json:"JobId"` RetrievalRange string `json:"RetrievalByteRange"` StatusCode string `json:"StatusCode"` StatusMessage string `json:"StatusMessage"` }
type OasClient ¶
type OasClient struct {
// contains filtered or unexported fields
}
目前只实现需要的功能,其他功能需要时才实现 (不知道Go对大文件上传的支持怎样)
func NewOasClient ¶
func (*OasClient) ArchiveToOas ¶
func (*OasClient) DeleteArchive ¶
func (*OasClient) GetJobInfo ¶
func (*OasClient) ListVaults ¶
func (o *OasClient) ListVaults(limit int, marker string) (requestId string, v *VaultsList, err error)
获取Vault列表 当limit值为-1时,limit参数不启用 当marker值为""时,marker参数不启用
type VaultsList ¶
Click to show internal directories.
Click to hide internal directories.