ft

package
v1.62.513 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EndpointMap map[string]string

EndpointMap Endpoint Data

View Source
var EndpointType = "regional"

EndpointType regional or central

Functions

func GetEndpointMap added in v1.61.955

func GetEndpointMap() map[string]string

GetEndpointMap Get Endpoint Data Map

func GetEndpointType added in v1.61.955

func GetEndpointType() string

GetEndpointType Get Endpoint Type Value

func SetClientProperty added in v1.61.955

func SetClientProperty(client *Client, propertyName string, propertyValue interface{})

SetClientProperty Set Property by Reflect

func SetEndpointDataToClient added in v1.61.955

func SetEndpointDataToClient(client *Client)

SetEndpointDataToClient Set EndpointMap and ENdpointType

Types

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) DataRateLimitTest added in v1.62.506

func (client *Client) DataRateLimitTest(request *DataRateLimitTestRequest) (response *DataRateLimitTestResponse, err error)

DataRateLimitTest invokes the ft.DataRateLimitTest API synchronously

func (*Client) DataRateLimitTestWithCallback added in v1.62.506

func (client *Client) DataRateLimitTestWithCallback(request *DataRateLimitTestRequest, callback func(response *DataRateLimitTestResponse, err error)) <-chan int

DataRateLimitTestWithCallback invokes the ft.DataRateLimitTest API asynchronously

func (*Client) DataRateLimitTestWithChan added in v1.62.506

func (client *Client) DataRateLimitTestWithChan(request *DataRateLimitTestRequest) (<-chan *DataRateLimitTestResponse, <-chan error)

DataRateLimitTestWithChan invokes the ft.DataRateLimitTest API asynchronously

func (*Client) NormalRpcHsfApi added in v1.62.506

func (client *Client) NormalRpcHsfApi(request *NormalRpcHsfApiRequest) (response *NormalRpcHsfApiResponse, err error)

NormalRpcHsfApi invokes the ft.NormalRpcHsfApi API synchronously

func (*Client) NormalRpcHsfApiWithCallback added in v1.62.506

func (client *Client) NormalRpcHsfApiWithCallback(request *NormalRpcHsfApiRequest, callback func(response *NormalRpcHsfApiResponse, err error)) <-chan int

NormalRpcHsfApiWithCallback invokes the ft.NormalRpcHsfApi API asynchronously

func (*Client) NormalRpcHsfApiWithChan added in v1.62.506

func (client *Client) NormalRpcHsfApiWithChan(request *NormalRpcHsfApiRequest) (<-chan *NormalRpcHsfApiResponse, <-chan error)

NormalRpcHsfApiWithChan invokes the ft.NormalRpcHsfApi API asynchronously

func (*Client) NormalRpcHttpApi added in v1.62.506

func (client *Client) NormalRpcHttpApi(request *NormalRpcHttpApiRequest) (response *NormalRpcHttpApiResponse, err error)

NormalRpcHttpApi invokes the ft.NormalRpcHttpApi API synchronously

func (*Client) NormalRpcHttpApiWithCallback added in v1.62.506

func (client *Client) NormalRpcHttpApiWithCallback(request *NormalRpcHttpApiRequest, callback func(response *NormalRpcHttpApiResponse, err error)) <-chan int

NormalRpcHttpApiWithCallback invokes the ft.NormalRpcHttpApi API asynchronously

func (*Client) NormalRpcHttpApiWithChan added in v1.62.506

func (client *Client) NormalRpcHttpApiWithChan(request *NormalRpcHttpApiRequest) (<-chan *NormalRpcHttpApiResponse, <-chan error)

NormalRpcHttpApiWithChan invokes the ft.NormalRpcHttpApi API asynchronously

func (*Client) RpcDataUpload added in v1.62.506

func (client *Client) RpcDataUpload(request *RpcDataUploadRequest) (response *RpcDataUploadResponse, err error)

RpcDataUpload invokes the ft.RpcDataUpload API synchronously

func (*Client) RpcDataUploadAndDownload added in v1.62.506

func (client *Client) RpcDataUploadAndDownload(request *RpcDataUploadAndDownloadRequest) (response *RpcDataUploadAndDownloadResponse, err error)

RpcDataUploadAndDownload invokes the ft.RpcDataUploadAndDownload API synchronously

func (*Client) RpcDataUploadAndDownloadWithCallback added in v1.62.506

func (client *Client) RpcDataUploadAndDownloadWithCallback(request *RpcDataUploadAndDownloadRequest, callback func(response *RpcDataUploadAndDownloadResponse, err error)) <-chan int

RpcDataUploadAndDownloadWithCallback invokes the ft.RpcDataUploadAndDownload API asynchronously

func (*Client) RpcDataUploadAndDownloadWithChan added in v1.62.506

func (client *Client) RpcDataUploadAndDownloadWithChan(request *RpcDataUploadAndDownloadRequest) (<-chan *RpcDataUploadAndDownloadResponse, <-chan error)

RpcDataUploadAndDownloadWithChan invokes the ft.RpcDataUploadAndDownload API asynchronously

func (*Client) RpcDataUploadTest added in v1.62.506

func (client *Client) RpcDataUploadTest(request *RpcDataUploadTestRequest) (response *RpcDataUploadTestResponse, err error)

RpcDataUploadTest invokes the ft.RpcDataUploadTest API synchronously

func (*Client) RpcDataUploadTestWithCallback added in v1.62.506

func (client *Client) RpcDataUploadTestWithCallback(request *RpcDataUploadTestRequest, callback func(response *RpcDataUploadTestResponse, err error)) <-chan int

RpcDataUploadTestWithCallback invokes the ft.RpcDataUploadTest API asynchronously

func (*Client) RpcDataUploadTestWithChan added in v1.62.506

func (client *Client) RpcDataUploadTestWithChan(request *RpcDataUploadTestRequest) (<-chan *RpcDataUploadTestResponse, <-chan error)

RpcDataUploadTestWithChan invokes the ft.RpcDataUploadTest API asynchronously

func (*Client) RpcDataUploadWithCallback added in v1.62.506

func (client *Client) RpcDataUploadWithCallback(request *RpcDataUploadRequest, callback func(response *RpcDataUploadResponse, err error)) <-chan int

RpcDataUploadWithCallback invokes the ft.RpcDataUpload API asynchronously

func (*Client) RpcDataUploadWithChan added in v1.62.506

func (client *Client) RpcDataUploadWithChan(request *RpcDataUploadRequest) (<-chan *RpcDataUploadResponse, <-chan error)

RpcDataUploadWithChan invokes the ft.RpcDataUpload API asynchronously

type DataRateLimitTestRequest added in v1.62.506

type DataRateLimitTestRequest struct {
	*requests.RpcRequest
	Data string `position:"Query" name:"Data"`
	Map  string `position:"Query" name:"Map"`
}

DataRateLimitTestRequest is the request struct for api DataRateLimitTest

func CreateDataRateLimitTestRequest added in v1.62.506

func CreateDataRateLimitTestRequest() (request *DataRateLimitTestRequest)

CreateDataRateLimitTestRequest creates a request to invoke DataRateLimitTest API

type DataRateLimitTestResponse added in v1.62.506

type DataRateLimitTestResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
}

DataRateLimitTestResponse is the response struct for api DataRateLimitTest

func CreateDataRateLimitTestResponse added in v1.62.506

func CreateDataRateLimitTestResponse() (response *DataRateLimitTestResponse)

CreateDataRateLimitTestResponse creates a response to parse from DataRateLimitTest response

type NormalRpcHsfApiRequest added in v1.62.506

type NormalRpcHsfApiRequest struct {
	*requests.RpcRequest
}

NormalRpcHsfApiRequest is the request struct for api NormalRpcHsfApi

func CreateNormalRpcHsfApiRequest added in v1.62.506

func CreateNormalRpcHsfApiRequest() (request *NormalRpcHsfApiRequest)

CreateNormalRpcHsfApiRequest creates a request to invoke NormalRpcHsfApi API

type NormalRpcHsfApiResponse added in v1.62.506

type NormalRpcHsfApiResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
}

NormalRpcHsfApiResponse is the response struct for api NormalRpcHsfApi

func CreateNormalRpcHsfApiResponse added in v1.62.506

func CreateNormalRpcHsfApiResponse() (response *NormalRpcHsfApiResponse)

CreateNormalRpcHsfApiResponse creates a response to parse from NormalRpcHsfApi response

type NormalRpcHttpApiRequest added in v1.62.506

type NormalRpcHttpApiRequest struct {
	*requests.RpcRequest
}

NormalRpcHttpApiRequest is the request struct for api NormalRpcHttpApi

func CreateNormalRpcHttpApiRequest added in v1.62.506

func CreateNormalRpcHttpApiRequest() (request *NormalRpcHttpApiRequest)

CreateNormalRpcHttpApiRequest creates a request to invoke NormalRpcHttpApi API

type NormalRpcHttpApiResponse added in v1.62.506

type NormalRpcHttpApiResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
}

NormalRpcHttpApiResponse is the response struct for api NormalRpcHttpApi

func CreateNormalRpcHttpApiResponse added in v1.62.506

func CreateNormalRpcHttpApiResponse() (response *NormalRpcHttpApiResponse)

CreateNormalRpcHttpApiResponse creates a response to parse from NormalRpcHttpApi response

type RpcDataUploadAndDownloadRequest added in v1.62.506

type RpcDataUploadAndDownloadRequest struct {
	*requests.RpcRequest
	Query1 string `position:"Query" name:"query1"`
}

RpcDataUploadAndDownloadRequest is the request struct for api RpcDataUploadAndDownload

func CreateRpcDataUploadAndDownloadRequest added in v1.62.506

func CreateRpcDataUploadAndDownloadRequest() (request *RpcDataUploadAndDownloadRequest)

CreateRpcDataUploadAndDownloadRequest creates a request to invoke RpcDataUploadAndDownload API

type RpcDataUploadAndDownloadResponse added in v1.62.506

type RpcDataUploadAndDownloadResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
}

RpcDataUploadAndDownloadResponse is the response struct for api RpcDataUploadAndDownload

func CreateRpcDataUploadAndDownloadResponse added in v1.62.506

func CreateRpcDataUploadAndDownloadResponse() (response *RpcDataUploadAndDownloadResponse)

CreateRpcDataUploadAndDownloadResponse creates a response to parse from RpcDataUploadAndDownload response

type RpcDataUploadRequest added in v1.62.506

type RpcDataUploadRequest struct {
	*requests.RpcRequest
	Query1     string           `position:"Query" name:"query1"`
	Query2     requests.Integer `position:"Query" name:"query2"`
	LargeParam string           `position:"Body" name:"largeParam"`
}

RpcDataUploadRequest is the request struct for api RpcDataUpload

func CreateRpcDataUploadRequest added in v1.62.506

func CreateRpcDataUploadRequest() (request *RpcDataUploadRequest)

CreateRpcDataUploadRequest creates a request to invoke RpcDataUpload API

type RpcDataUploadResponse added in v1.62.506

type RpcDataUploadResponse struct {
	*responses.BaseResponse
	RequestId  string                 `json:"RequestId" xml:"RequestId"`
	Url        string                 `json:"url" xml:"url"`
	TotalBytes int64                  `json:"totalBytes" xml:"totalBytes"`
	TotalTime  int64                  `json:"totalTime" xml:"totalTime"`
	Speed      string                 `json:"speed" xml:"speed"`
	Params     map[string]interface{} `json:"params" xml:"params"`
	Headers    map[string]interface{} `json:"headers" xml:"headers"`
}

RpcDataUploadResponse is the response struct for api RpcDataUpload

func CreateRpcDataUploadResponse added in v1.62.506

func CreateRpcDataUploadResponse() (response *RpcDataUploadResponse)

CreateRpcDataUploadResponse creates a response to parse from RpcDataUpload response

type RpcDataUploadTestRequest added in v1.62.506

type RpcDataUploadTestRequest struct {
	*requests.RpcRequest
}

RpcDataUploadTestRequest is the request struct for api RpcDataUploadTest

func CreateRpcDataUploadTestRequest added in v1.62.506

func CreateRpcDataUploadTestRequest() (request *RpcDataUploadTestRequest)

CreateRpcDataUploadTestRequest creates a request to invoke RpcDataUploadTest API

type RpcDataUploadTestResponse added in v1.62.506

type RpcDataUploadTestResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
}

RpcDataUploadTestResponse is the response struct for api RpcDataUploadTest

func CreateRpcDataUploadTestResponse added in v1.62.506

func CreateRpcDataUploadTestResponse() (response *RpcDataUploadTestResponse)

CreateRpcDataUploadTestResponse creates a response to parse from RpcDataUploadTest response

Jump to

Keyboard shortcuts

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