grace

package
v1.62.812 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnalyzeFileRequest

type AnalyzeFileRequest struct {
	*requests.RoaRequest
	KeepUnreachableObjects requests.Boolean `position:"Query" name:"keepUnreachableObjects"`
	Token                  string           `position:"Query" name:"token"`
	Name                   string           `position:"Query" name:"name"`
}

AnalyzeFileRequest is the request struct for api AnalyzeFile

func CreateAnalyzeFileRequest

func CreateAnalyzeFileRequest() (request *AnalyzeFileRequest)

CreateAnalyzeFileRequest creates a request to invoke AnalyzeFile API

type AnalyzeFileResponse

type AnalyzeFileResponse struct {
	*responses.BaseResponse
	RequestId string `json:"requestId" xml:"requestId"`
	FileName  string `json:"fileName" xml:"fileName"`
}

AnalyzeFileResponse is the response struct for api AnalyzeFile

func CreateAnalyzeFileResponse

func CreateAnalyzeFileResponse() (response *AnalyzeFileResponse)

CreateAnalyzeFileResponse creates a response to parse from AnalyzeFile response

type AnalyzeProgress

type AnalyzeProgress struct {
	Message string `json:"message" xml:"message"`
	Percent string `json:"percent" xml:"percent"`
	State   string `json:"state" xml:"state"`
}

AnalyzeProgress is a nested struct in grace response

type Client

type Client struct {
	sdk.Client
}

Client is the sdk client struct, each func corresponds to an OpenAPI

func NewClient

func NewClient() (client *Client, err error)

NewClient creates a sdk client with environment variables

func NewClientWithAccessKey

func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error)

NewClientWithAccessKey is a shortcut to create sdk client with accesskey usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func NewClientWithEcsRamRole

func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error)

NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func NewClientWithOptions

func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error)

NewClientWithOptions creates a sdk client with regionId/sdkConfig/credential this is the common api to create a sdk client

func NewClientWithProvider

func NewClientWithProvider(regionId string, providers ...provider.Provider) (client *Client, err error)

NewClientWithProvider creates a sdk client with providers usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func NewClientWithRamRoleArn

func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error)

NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func NewClientWithRamRoleArnAndPolicy

func NewClientWithRamRoleArnAndPolicy(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName, policy string) (client *Client, err error)

NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn and policy usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func NewClientWithRsaKeyPair

func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error)

NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func NewClientWithStsToken

func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error)

NewClientWithStsToken is a shortcut to create sdk client with sts token usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func (*Client) AnalyzeFile

func (client *Client) AnalyzeFile(request *AnalyzeFileRequest) (response *AnalyzeFileResponse, err error)

AnalyzeFile invokes the grace.AnalyzeFile API synchronously

func (*Client) AnalyzeFileWithCallback

func (client *Client) AnalyzeFileWithCallback(request *AnalyzeFileRequest, callback func(response *AnalyzeFileResponse, err error)) <-chan int

AnalyzeFileWithCallback invokes the grace.AnalyzeFile API asynchronously

func (*Client) AnalyzeFileWithChan

func (client *Client) AnalyzeFileWithChan(request *AnalyzeFileRequest) (<-chan *AnalyzeFileResponse, <-chan error)

AnalyzeFileWithChan invokes the grace.AnalyzeFile API asynchronously

func (*Client) GetFile

func (client *Client) GetFile(request *GetFileRequest) (response *GetFileResponse, err error)

GetFile invokes the grace.GetFile API synchronously

func (*Client) GetFileWithCallback

func (client *Client) GetFileWithCallback(request *GetFileRequest, callback func(response *GetFileResponse, err error)) <-chan int

GetFileWithCallback invokes the grace.GetFile API asynchronously

func (*Client) GetFileWithChan

func (client *Client) GetFileWithChan(request *GetFileRequest) (<-chan *GetFileResponse, <-chan error)

GetFileWithChan invokes the grace.GetFile API asynchronously

func (*Client) UploadFileByOSS

func (client *Client) UploadFileByOSS(request *UploadFileByOSSRequest) (response *UploadFileByOSSResponse, err error)

UploadFileByOSS invokes the grace.UploadFileByOSS API synchronously

func (*Client) UploadFileByOSSWithCallback

func (client *Client) UploadFileByOSSWithCallback(request *UploadFileByOSSRequest, callback func(response *UploadFileByOSSResponse, err error)) <-chan int

UploadFileByOSSWithCallback invokes the grace.UploadFileByOSS API asynchronously

func (*Client) UploadFileByOSSWithChan

func (client *Client) UploadFileByOSSWithChan(request *UploadFileByOSSRequest) (<-chan *UploadFileByOSSResponse, <-chan error)

UploadFileByOSSWithChan invokes the grace.UploadFileByOSS API asynchronously

func (*Client) UploadFileByURL

func (client *Client) UploadFileByURL(request *UploadFileByURLRequest) (response *UploadFileByURLResponse, err error)

UploadFileByURL invokes the grace.UploadFileByURL API synchronously

func (*Client) UploadFileByURLWithCallback

func (client *Client) UploadFileByURLWithCallback(request *UploadFileByURLRequest, callback func(response *UploadFileByURLResponse, err error)) <-chan int

UploadFileByURLWithCallback invokes the grace.UploadFileByURL API asynchronously

func (*Client) UploadFileByURLWithChan

func (client *Client) UploadFileByURLWithChan(request *UploadFileByURLRequest) (<-chan *UploadFileByURLResponse, <-chan error)

UploadFileByURLWithChan invokes the grace.UploadFileByURL API asynchronously

type GetFileRequest

type GetFileRequest struct {
	*requests.RoaRequest
	Token string `position:"Query" name:"token"`
	Name  string `position:"Query" name:"name"`
}

GetFileRequest is the request struct for api GetFile

func CreateGetFileRequest

func CreateGetFileRequest() (request *GetFileRequest)

CreateGetFileRequest creates a request to invoke GetFile API

type GetFileResponse

type GetFileResponse struct {
	*responses.BaseResponse
	Type             string           `json:"type" xml:"type"`
	Size             int64            `json:"size" xml:"size"`
	CreationTime     int64            `json:"creationTime" xml:"creationTime"`
	DisplayName      string           `json:"displayName" xml:"displayName"`
	Labels           string           `json:"labels" xml:"labels"`
	Shared           bool             `json:"shared" xml:"shared"`
	TransferState    string           `json:"transferState" xml:"transferState"`
	Name             string           `json:"name" xml:"name"`
	RequestId        string           `json:"requestId" xml:"requestId"`
	AnalyzeProgress  AnalyzeProgress  `json:"analyzeProgress" xml:"analyzeProgress"`
	TransferProgress TransferProgress `json:"transferProgress" xml:"transferProgress"`
}

GetFileResponse is the response struct for api GetFile

func CreateGetFileResponse

func CreateGetFileResponse() (response *GetFileResponse)

CreateGetFileResponse creates a response to parse from GetFile response

type TransferProgress

type TransferProgress struct {
	TotalSize       int64 `json:"totalSize" xml:"totalSize"`
	TransferredSize int64 `json:"transferredSize" xml:"transferredSize"`
}

TransferProgress is a nested struct in grace response

type UploadFileByOSSRequest

type UploadFileByOSSRequest struct {
	*requests.RoaRequest
	ObjectName  string `position:"Query" name:"objectName"`
	Type        string `position:"Query" name:"type"`
	Endpoint    string `position:"Query" name:"endpoint"`
	BucketName  string `position:"Query" name:"bucketName"`
	DisplayName string `position:"Query" name:"displayName"`
}

UploadFileByOSSRequest is the request struct for api UploadFileByOSS

func CreateUploadFileByOSSRequest

func CreateUploadFileByOSSRequest() (request *UploadFileByOSSRequest)

CreateUploadFileByOSSRequest creates a request to invoke UploadFileByOSS API

type UploadFileByOSSResponse

type UploadFileByOSSResponse struct {
	*responses.BaseResponse
	Name      string `json:"name" xml:"name"`
	RequestId string `json:"requestId" xml:"requestId"`
}

UploadFileByOSSResponse is the response struct for api UploadFileByOSS

func CreateUploadFileByOSSResponse

func CreateUploadFileByOSSResponse() (response *UploadFileByOSSResponse)

CreateUploadFileByOSSResponse creates a response to parse from UploadFileByOSS response

type UploadFileByURLRequest

type UploadFileByURLRequest struct {
	*requests.RoaRequest
	Type        string `position:"Query" name:"type"`
	Url         string `position:"Query" name:"url"`
	DisplayName string `position:"Query" name:"displayName"`
}

UploadFileByURLRequest is the request struct for api UploadFileByURL

func CreateUploadFileByURLRequest

func CreateUploadFileByURLRequest() (request *UploadFileByURLRequest)

CreateUploadFileByURLRequest creates a request to invoke UploadFileByURL API

type UploadFileByURLResponse

type UploadFileByURLResponse struct {
	*responses.BaseResponse
	RequestId string `json:"requestId" xml:"requestId"`
	Name      string `json:"name" xml:"name"`
}

UploadFileByURLResponse is the response struct for api UploadFileByURL

func CreateUploadFileByURLResponse

func CreateUploadFileByURLResponse() (response *UploadFileByURLResponse)

CreateUploadFileByURLResponse creates a response to parse from UploadFileByURL response

Jump to

Keyboard shortcuts

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