sls

package
v0.0.0-...-dd20015 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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://help.aliyun.com/document_detail/66217.html

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://help.aliyun.com/document_detail/66223.html

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 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://help.aliyun.com/document_detail/66222.html

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 attention: rsa key pair auth is only Japan regions available

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://help.aliyun.com/document_detail/66222.html

func (*Client) OpenAccount

func (client *Client) OpenAccount(request *OpenAccountRequest) (response *OpenAccountResponse, err error)

OpenAccount invokes the sls.OpenAccount API synchronously api document: https://help.aliyun.com/api/sls/openaccount.html

func (*Client) OpenAccountWithCallback

func (client *Client) OpenAccountWithCallback(request *OpenAccountRequest, callback func(response *OpenAccountResponse, err error)) <-chan int

OpenAccountWithCallback invokes the sls.OpenAccount API asynchronously api document: https://help.aliyun.com/api/sls/openaccount.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) OpenAccountWithChan

func (client *Client) OpenAccountWithChan(request *OpenAccountRequest) (<-chan *OpenAccountResponse, <-chan error)

OpenAccountWithChan invokes the sls.OpenAccount API asynchronously api document: https://help.aliyun.com/api/sls/openaccount.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) OrderSucceededCallback

func (client *Client) OrderSucceededCallback(request *OrderSucceededCallbackRequest) (response *OrderSucceededCallbackResponse, err error)

OrderSucceededCallback invokes the sls.OrderSucceededCallback API synchronously api document: https://help.aliyun.com/api/sls/ordersucceededcallback.html

func (*Client) OrderSucceededCallbackWithCallback

func (client *Client) OrderSucceededCallbackWithCallback(request *OrderSucceededCallbackRequest, callback func(response *OrderSucceededCallbackResponse, err error)) <-chan int

OrderSucceededCallbackWithCallback invokes the sls.OrderSucceededCallback API asynchronously api document: https://help.aliyun.com/api/sls/ordersucceededcallback.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) OrderSucceededCallbackWithChan

func (client *Client) OrderSucceededCallbackWithChan(request *OrderSucceededCallbackRequest) (<-chan *OrderSucceededCallbackResponse, <-chan error)

OrderSucceededCallbackWithChan invokes the sls.OrderSucceededCallback API asynchronously api document: https://help.aliyun.com/api/sls/ordersucceededcallback.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

type OpenAccountRequest

type OpenAccountRequest struct {
	*requests.RpcRequest
	Bid    string           `position:"Query" name:"Bid"`
	AliUid requests.Integer `position:"Query" name:"AliUid"`
}

OpenAccountRequest is the request struct for api OpenAccount

func CreateOpenAccountRequest

func CreateOpenAccountRequest() (request *OpenAccountRequest)

CreateOpenAccountRequest creates a request to invoke OpenAccount API

type OpenAccountResponse

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

OpenAccountResponse is the response struct for api OpenAccount

func CreateOpenAccountResponse

func CreateOpenAccountResponse() (response *OpenAccountResponse)

CreateOpenAccountResponse creates a response to parse from OpenAccount response

type OrderSucceededCallbackRequest

type OrderSucceededCallbackRequest struct {
	*requests.RpcRequest
	Data string `position:"Body" name:"data"`
}

OrderSucceededCallbackRequest is the request struct for api OrderSucceededCallback

func CreateOrderSucceededCallbackRequest

func CreateOrderSucceededCallbackRequest() (request *OrderSucceededCallbackRequest)

CreateOrderSucceededCallbackRequest creates a request to invoke OrderSucceededCallback API

type OrderSucceededCallbackResponse

type OrderSucceededCallbackResponse struct {
	*responses.BaseResponse
	RequestId string `json:"requestId" xml:"requestId"`
	Data      string `json:"data" xml:"data"`
	Success   bool   `json:"success" xml:"success"`
	Synchro   bool   `json:"synchro" xml:"synchro"`
}

OrderSucceededCallbackResponse is the response struct for api OrderSucceededCallback

func CreateOrderSucceededCallbackResponse

func CreateOrderSucceededCallbackResponse() (response *OrderSucceededCallbackResponse)

CreateOrderSucceededCallbackResponse creates a response to parse from OrderSucceededCallback response

Jump to

Keyboard shortcuts

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