cloudauth_console

package
v1.63.61 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 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

func GetEndpointMap() map[string]string

GetEndpointMap Get Endpoint Data Map

func GetEndpointType

func GetEndpointType() string

GetEndpointType Get Endpoint Type Value

func SetClientProperty

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

SetClientProperty Set Property by Reflect

func SetEndpointDataToClient

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) RetrieveFace

func (client *Client) RetrieveFace(request *RetrieveFaceRequest) (response *RetrieveFaceResponse, err error)

RetrieveFace invokes the cloudauth_console.RetrieveFace API synchronously

func (*Client) RetrieveFaceWithCallback

func (client *Client) RetrieveFaceWithCallback(request *RetrieveFaceRequest, callback func(response *RetrieveFaceResponse, err error)) <-chan int

RetrieveFaceWithCallback invokes the cloudauth_console.RetrieveFace API asynchronously

func (*Client) RetrieveFaceWithChan

func (client *Client) RetrieveFaceWithChan(request *RetrieveFaceRequest) (<-chan *RetrieveFaceResponse, <-chan error)

RetrieveFaceWithChan invokes the cloudauth_console.RetrieveFace API asynchronously

func (*Client) UploadIdentifyRecord

func (client *Client) UploadIdentifyRecord(request *UploadIdentifyRecordRequest) (response *UploadIdentifyRecordResponse, err error)

UploadIdentifyRecord invokes the cloudauth_console.UploadIdentifyRecord API synchronously

func (*Client) UploadIdentifyRecordWithCallback

func (client *Client) UploadIdentifyRecordWithCallback(request *UploadIdentifyRecordRequest, callback func(response *UploadIdentifyRecordResponse, err error)) <-chan int

UploadIdentifyRecordWithCallback invokes the cloudauth_console.UploadIdentifyRecord API asynchronously

func (*Client) UploadIdentifyRecordWithChan

func (client *Client) UploadIdentifyRecordWithChan(request *UploadIdentifyRecordRequest) (<-chan *UploadIdentifyRecordResponse, <-chan error)

UploadIdentifyRecordWithChan invokes the cloudauth_console.UploadIdentifyRecord API asynchronously

type Data

type Data struct {
	DataItem []DataItem `json:"Data" xml:"Data"`
}

Data is a nested struct in cloudauth_console response

type DataItem

type DataItem struct {
	UserId   int64  `json:"UserId" xml:"UserId"`
	UserName string `json:"UserName" xml:"UserName"`
	Rate     string `json:"Rate" xml:"Rate"`
}

DataItem is a nested struct in cloudauth_console response

type RetrieveFaceRequest

type RetrieveFaceRequest struct {
	*requests.RpcRequest
	Face64String string `position:"Body" name:"Face64String"`
	FaceUrl      string `position:"Query" name:"FaceUrl"`
	ProjectId    string `position:"Query" name:"ProjectId"`
}

RetrieveFaceRequest is the request struct for api RetrieveFace

func CreateRetrieveFaceRequest

func CreateRetrieveFaceRequest() (request *RetrieveFaceRequest)

CreateRetrieveFaceRequest creates a request to invoke RetrieveFace API

type RetrieveFaceResponse

type RetrieveFaceResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	Success   bool   `json:"Success" xml:"Success"`
	Data      Data   `json:"Data" xml:"Data"`
}

RetrieveFaceResponse is the response struct for api RetrieveFace

func CreateRetrieveFaceResponse

func CreateRetrieveFaceResponse() (response *RetrieveFaceResponse)

CreateRetrieveFaceResponse creates a response to parse from RetrieveFace response

type UploadIdentifyRecordRequest

type UploadIdentifyRecordRequest struct {
	*requests.RpcRequest
	Ext                    string           `position:"Query" name:"Ext"`
	IdentifyingImageUrl    string           `position:"Query" name:"IdentifyingImageUrl"`
	IdentifyingImageBase64 string           `position:"Body" name:"IdentifyingImageBase64"`
	DeviceSecret           string           `position:"Query" name:"DeviceSecret"`
	ProductKey             string           `position:"Query" name:"ProductKey"`
	UserId                 string           `position:"Query" name:"UserId"`
	IotId                  string           `position:"Query" name:"IotId"`
	DeviceName             string           `position:"Query" name:"DeviceName"`
	IdentifyingTime        requests.Integer `position:"Query" name:"IdentifyingTime"`
	ProjectId              string           `position:"Query" name:"ProjectId"`
	UserName               string           `position:"Query" name:"UserName"`
}

UploadIdentifyRecordRequest is the request struct for api UploadIdentifyRecord

func CreateUploadIdentifyRecordRequest

func CreateUploadIdentifyRecordRequest() (request *UploadIdentifyRecordRequest)

CreateUploadIdentifyRecordRequest creates a request to invoke UploadIdentifyRecord API

type UploadIdentifyRecordResponse

type UploadIdentifyRecordResponse struct {
	*responses.BaseResponse
	RequestId      string `json:"RequestId" xml:"RequestId"`
	Success        bool   `json:"Success" xml:"Success"`
	HttpStatusCode int    `json:"HttpStatusCode" xml:"HttpStatusCode"`
}

UploadIdentifyRecordResponse is the response struct for api UploadIdentifyRecord

func CreateUploadIdentifyRecordResponse

func CreateUploadIdentifyRecordResponse() (response *UploadIdentifyRecordResponse)

CreateUploadIdentifyRecordResponse creates a response to parse from UploadIdentifyRecord response

Jump to

Keyboard shortcuts

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