api

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultRegion = "ap-guangzhou"
View Source
const (
	DefaultTimeout = 30 * time.Second
)

Variables

This section is empty.

Functions

func DecodeError

func DecodeError(statusCode int, body []byte) error

func IsAccessDenied added in v0.2.5

func IsAccessDenied(err error) bool

func NewHTTPClient

func NewHTTPClient() *http.Client

func NewTransport

func NewTransport() *http.Transport

Types

type APIError

type APIError struct {
	Code       string
	Message    string
	RequestID  string
	StatusCode int
}

func (*APIError) Error

func (e *APIError) Error() string

type AddUserRequest

type AddUserRequest struct {
	Name              *string `json:"Name,omitempty"`
	ConsoleLogin      *uint64 `json:"ConsoleLogin,omitempty"`
	Password          *string `json:"Password,omitempty"`
	NeedResetPassword *uint64 `json:"NeedResetPassword,omitempty"`
}

type AddUserResponse

type AddUserResponse struct {
	Response struct {
		Uin       *uint64 `json:"Uin"`
		Name      *string `json:"Name"`
		Password  *string `json:"Password"`
		RequestID string  `json:"RequestId"`
	} `json:"Response"`
}

type AttachRolePolicyRequest

type AttachRolePolicyRequest struct {
	PolicyID       *uint64 `json:"PolicyId,omitempty"`
	AttachRoleName *string `json:"AttachRoleName,omitempty"`
}

type AttachRolePolicyResponse

type AttachRolePolicyResponse struct {
	Response struct {
		RequestID string `json:"RequestId"`
	} `json:"Response"`
}

type AttachUserPolicyRequest

type AttachUserPolicyRequest struct {
	PolicyID  *uint64 `json:"PolicyId,omitempty"`
	AttachUin *uint64 `json:"AttachUin,omitempty"`
}

type AttachUserPolicyResponse

type AttachUserPolicyResponse struct {
	Response struct {
		RequestID string `json:"RequestId"`
	} `json:"Response"`
}

type AttachedUserPolicy

type AttachedUserPolicy struct {
	PolicyID     *string `json:"PolicyId"`
	PolicyName   *string `json:"PolicyName"`
	StrategyType *string `json:"StrategyType"`
}

type CDBInstanceInfo

type CDBInstanceInfo struct {
	InstanceID    *string `json:"InstanceId"`
	EngineVersion *string `json:"EngineVersion"`
	Region        *string `json:"Region"`
	WanStatus     *int64  `json:"WanStatus"`
	WanDomain     *string `json:"WanDomain"`
	WanPort       *int64  `json:"WanPort"`
	Vip           *string `json:"Vip"`
	Vport         *int64  `json:"Vport"`
}

type CDBRegionSellConf

type CDBRegionSellConf struct {
	Region *string `json:"Region"`
}

type CVMInstanceInfo

type CVMInstanceInfo struct {
	InstanceID         *string  `json:"InstanceId"`
	InstanceName       *string  `json:"InstanceName"`
	InstanceState      *string  `json:"InstanceState"`
	PublicIPAddresses  []string `json:"PublicIpAddresses"`
	PrivateIPAddresses []string `json:"PrivateIpAddresses"`
	OSName             *string  `json:"OsName"`
}

type CVMRegionInfo

type CVMRegionInfo struct {
	Region *string `json:"Region"`
}

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(credential auth.Credential, opts ...Option) *Client

func (*Client) AddUser

func (c *Client) AddUser(ctx context.Context, name, password string) (AddUserResponse, error)

func (*Client) AttachRolePolicy

func (c *Client) AttachRolePolicy(ctx context.Context, roleName string, policyID uint64) (AttachRolePolicyResponse, error)

func (*Client) AttachUserPolicy

func (c *Client) AttachUserPolicy(ctx context.Context, attachUin, policyID uint64) (AttachUserPolicyResponse, error)

func (*Client) CreateRole

func (c *Client) CreateRole(ctx context.Context, roleName, policyDocument string, consoleLogin, sessionDuration uint64) (CreateRoleResponse, error)

func (*Client) DeleteRole

func (c *Client) DeleteRole(ctx context.Context, roleName string) (DeleteRoleResponse, error)

func (*Client) DeleteUser

func (c *Client) DeleteUser(ctx context.Context, name string, force uint64) (DeleteUserResponse, error)

func (*Client) DescribeAccountBalance

func (c *Client) DescribeAccountBalance(ctx context.Context, region string) (DescribeAccountBalanceResponse, error)

func (*Client) DescribeCDBInstances

func (c *Client) DescribeCDBInstances(ctx context.Context, region string) (DescribeCDBInstancesResponse, error)

func (*Client) DescribeCDBZoneConfig

func (c *Client) DescribeCDBZoneConfig(ctx context.Context, region string) (DescribeCDBZoneConfigResponse, error)

func (*Client) DescribeCVMInstances

func (c *Client) DescribeCVMInstances(ctx context.Context, region string, offset, limit int64) (DescribeCVMInstancesResponse, error)

func (*Client) DescribeCVMRegions

func (c *Client) DescribeCVMRegions(ctx context.Context, region string) (DescribeCVMRegionsResponse, error)

func (*Client) DescribeDomainList

func (c *Client) DescribeDomainList(ctx context.Context, region string, offset, limit int64) (DescribeDomainListResponse, error)

func (*Client) DescribeLighthouseInstances

func (c *Client) DescribeLighthouseInstances(ctx context.Context, region string, offset, limit int64) (DescribeLighthouseInstancesResponse, error)

func (*Client) DescribeLighthouseRegions

func (c *Client) DescribeLighthouseRegions(ctx context.Context, region string) (DescribeLighthouseRegionsResponse, error)

func (*Client) DescribeMariaDBInstances

func (c *Client) DescribeMariaDBInstances(ctx context.Context, region string) (DescribeMariaDBInstancesResponse, error)

func (*Client) DescribeMariaDBSaleInfo

func (c *Client) DescribeMariaDBSaleInfo(ctx context.Context, region string) (DescribeMariaDBSaleInfoResponse, error)

func (*Client) DescribePostgresInstances

func (c *Client) DescribePostgresInstances(ctx context.Context, region string) (DescribePostgresInstancesResponse, error)

func (*Client) DescribePostgresRegions

func (c *Client) DescribePostgresRegions(ctx context.Context, region string) (DescribePostgresRegionsResponse, error)

func (*Client) DescribeRecordList

func (c *Client) DescribeRecordList(ctx context.Context, region, domain string, offset, limit uint64) (DescribeRecordListResponse, error)

func (*Client) DescribeSQLServerInstances

func (c *Client) DescribeSQLServerInstances(ctx context.Context, region string) (DescribeSQLServerInstancesResponse, error)

func (*Client) DescribeSQLServerRegions

func (c *Client) DescribeSQLServerRegions(ctx context.Context, region string) (DescribeSQLServerRegionsResponse, error)

func (*Client) DescribeTATInvocationTasks

func (c *Client) DescribeTATInvocationTasks(ctx context.Context, region string, invocationTaskIDs []string, hideOutput bool) (DescribeTATInvocationTasksResponse, error)

func (*Client) DescribeTATInvocations

func (c *Client) DescribeTATInvocations(ctx context.Context, region string, invocationIDs []string) (DescribeTATInvocationsResponse, error)

func (*Client) DetachRolePolicy

func (c *Client) DetachRolePolicy(ctx context.Context, roleName string, policyID uint64) (DetachRolePolicyResponse, error)

func (*Client) DetachUserPolicy

func (c *Client) DetachUserPolicy(ctx context.Context, detachUin, policyID uint64) (DetachUserPolicyResponse, error)

func (*Client) Do

func (c *Client) Do(ctx context.Context, req Request, resp any) error

func (*Client) DoJSON

func (c *Client) DoJSON(
	ctx context.Context,
	service string,
	version string,
	action string,
	region string,
	req any,
	resp any,
) error

func (*Client) GetPolicy

func (c *Client) GetPolicy(ctx context.Context, policyID uint64) (GetPolicyResponse, error)

func (*Client) GetUser

func (c *Client) GetUser(ctx context.Context, name string) (GetUserResponse, error)

func (*Client) GetUserAppID

func (c *Client) GetUserAppID(ctx context.Context) (GetUserAppIDResponse, error)

func (*Client) ListAttachedUserAllPolicies

func (c *Client) ListAttachedUserAllPolicies(ctx context.Context, targetUin, page, rp, attachType uint64) (ListAttachedUserAllPoliciesResponse, error)

func (*Client) ListUsers

func (c *Client) ListUsers(ctx context.Context) (ListUsersResponse, error)

func (*Client) RunTATCommand

func (c *Client) RunTATCommand(ctx context.Context, region, commandType, content string, instanceIDs []string) (RunTATCommandResponse, error)

type CreateRoleRequest

type CreateRoleRequest struct {
	RoleName        *string `json:"RoleName,omitempty"`
	PolicyDocument  *string `json:"PolicyDocument,omitempty"`
	ConsoleLogin    *uint64 `json:"ConsoleLogin,omitempty"`
	SessionDuration *uint64 `json:"SessionDuration,omitempty"`
}

type CreateRoleResponse

type CreateRoleResponse struct {
	Response struct {
		RoleID    *string `json:"RoleId"`
		RequestID string  `json:"RequestId"`
	} `json:"Response"`
}

type DeleteRoleRequest

type DeleteRoleRequest struct {
	RoleName *string `json:"RoleName,omitempty"`
}

type DeleteRoleResponse

type DeleteRoleResponse struct {
	Response struct {
		RequestID string `json:"RequestId"`
	} `json:"Response"`
}

type DeleteUserRequest

type DeleteUserRequest struct {
	Name  *string `json:"Name,omitempty"`
	Force *uint64 `json:"Force,omitempty"`
}

type DeleteUserResponse

type DeleteUserResponse struct {
	Response struct {
		RequestID string `json:"RequestId"`
	} `json:"Response"`
}

type DescribeAccountBalanceRequest

type DescribeAccountBalanceRequest struct{}

type DescribeAccountBalanceResponse

type DescribeAccountBalanceResponse struct {
	Response struct {
		Balance            *int64   `json:"Balance"`
		RealBalance        *float64 `json:"RealBalance"`
		CashAccountBalance *float64 `json:"CashAccountBalance"`
		RequestID          string   `json:"RequestId"`
	} `json:"Response"`
}

type DescribeCDBInstancesRequest

type DescribeCDBInstancesRequest struct{}

type DescribeCDBInstancesResponse

type DescribeCDBInstancesResponse struct {
	Response struct {
		Items     []CDBInstanceInfo `json:"Items"`
		RequestID string            `json:"RequestId"`
	} `json:"Response"`
}

type DescribeCDBZoneConfigRequest

type DescribeCDBZoneConfigRequest struct{}

type DescribeCDBZoneConfigResponse

type DescribeCDBZoneConfigResponse struct {
	Response struct {
		DataResult struct {
			Regions []CDBRegionSellConf `json:"Regions"`
		} `json:"DataResult"`
		RequestID string `json:"RequestId"`
	} `json:"Response"`
}

type DescribeCVMInstancesRequest

type DescribeCVMInstancesRequest struct {
	Offset *int64 `json:"Offset,omitempty"`
	Limit  *int64 `json:"Limit,omitempty"`
}

type DescribeCVMInstancesResponse

type DescribeCVMInstancesResponse struct {
	Response struct {
		TotalCount  *int64            `json:"TotalCount"`
		InstanceSet []CVMInstanceInfo `json:"InstanceSet"`
		RequestID   string            `json:"RequestId"`
	} `json:"Response"`
}

type DescribeCVMRegionsRequest

type DescribeCVMRegionsRequest struct{}

type DescribeCVMRegionsResponse

type DescribeCVMRegionsResponse struct {
	Response struct {
		RegionSet []CVMRegionInfo `json:"RegionSet"`
		RequestID string          `json:"RequestId"`
	} `json:"Response"`
}

type DescribeDomainListRequest

type DescribeDomainListRequest struct {
	Offset int64 `json:"Offset,omitempty"`
	Limit  int64 `json:"Limit,omitempty"`
}

type DescribeDomainListResponse

type DescribeDomainListResponse struct {
	Response struct {
		DomainCountInfo struct {
			DomainTotal *uint64 `json:"DomainTotal"`
		} `json:"DomainCountInfo"`
		DomainList []DomainListItem `json:"DomainList"`
		RequestID  string           `json:"RequestId"`
	} `json:"Response"`
}

type DescribeLighthouseInstancesRequest

type DescribeLighthouseInstancesRequest struct {
	Offset *int64 `json:"Offset,omitempty"`
	Limit  *int64 `json:"Limit,omitempty"`
}

type DescribeLighthouseInstancesResponse

type DescribeLighthouseInstancesResponse struct {
	Response struct {
		TotalCount  *int64                   `json:"TotalCount"`
		InstanceSet []LighthouseInstanceInfo `json:"InstanceSet"`
		RequestID   string                   `json:"RequestId"`
	} `json:"Response"`
}

type DescribeLighthouseRegionsRequest

type DescribeLighthouseRegionsRequest struct{}

type DescribeLighthouseRegionsResponse

type DescribeLighthouseRegionsResponse struct {
	Response struct {
		RegionSet []LighthouseRegionInfo `json:"RegionSet"`
		RequestID string                 `json:"RequestId"`
	} `json:"Response"`
}

type DescribeMariaDBInstancesRequest

type DescribeMariaDBInstancesRequest struct{}

type DescribeMariaDBInstancesResponse

type DescribeMariaDBInstancesResponse struct {
	Response struct {
		Instances []MariaDBInstanceInfo `json:"Instances"`
		RequestID string                `json:"RequestId"`
	} `json:"Response"`
}

type DescribeMariaDBSaleInfoRequest

type DescribeMariaDBSaleInfoRequest struct{}

type DescribeMariaDBSaleInfoResponse

type DescribeMariaDBSaleInfoResponse struct {
	Response struct {
		RegionList []MariaDBRegionInfo `json:"RegionList"`
		RequestID  string              `json:"RequestId"`
	} `json:"Response"`
}

type DescribePostgresInstancesRequest

type DescribePostgresInstancesRequest struct{}

type DescribePostgresInstancesResponse

type DescribePostgresInstancesResponse struct {
	Response struct {
		DBInstanceSet []PostgresInstanceInfo `json:"DBInstanceSet"`
		RequestID     string                 `json:"RequestId"`
	} `json:"Response"`
}

type DescribePostgresRegionsRequest

type DescribePostgresRegionsRequest struct{}

type DescribePostgresRegionsResponse

type DescribePostgresRegionsResponse struct {
	Response struct {
		RegionSet []PostgresRegionInfo `json:"RegionSet"`
		RequestID string               `json:"RequestId"`
	} `json:"Response"`
}

type DescribeRecordListRequest

type DescribeRecordListRequest struct {
	Domain       string `json:"Domain"`
	Offset       uint64 `json:"Offset,omitempty"`
	Limit        uint64 `json:"Limit,omitempty"`
	ErrorOnEmpty string `json:"ErrorOnEmpty,omitempty"`
}

type DescribeRecordListResponse

type DescribeRecordListResponse struct {
	Response struct {
		RecordCountInfo struct {
			TotalCount *uint64 `json:"TotalCount"`
			ListCount  *uint64 `json:"ListCount"`
		} `json:"RecordCountInfo"`
		RecordList []RecordListItem `json:"RecordList"`
		RequestID  string           `json:"RequestId"`
	} `json:"Response"`
}

type DescribeSQLServerInstancesRequest

type DescribeSQLServerInstancesRequest struct{}

type DescribeSQLServerInstancesResponse

type DescribeSQLServerInstancesResponse struct {
	Response struct {
		DBInstances []SQLServerInstanceInfo `json:"DBInstances"`
		RequestID   string                  `json:"RequestId"`
	} `json:"Response"`
}

type DescribeSQLServerRegionsRequest

type DescribeSQLServerRegionsRequest struct{}

type DescribeSQLServerRegionsResponse

type DescribeSQLServerRegionsResponse struct {
	Response struct {
		RegionSet []SQLServerRegionInfo `json:"RegionSet"`
		RequestID string                `json:"RequestId"`
	} `json:"Response"`
}

type DescribeTATInvocationTasksRequest

type DescribeTATInvocationTasksRequest struct {
	InvocationTaskIDs []string `json:"InvocationTaskIds,omitempty"`
	HideOutput        *bool    `json:"HideOutput,omitempty"`
}

type DescribeTATInvocationTasksResponse

type DescribeTATInvocationTasksResponse struct {
	Response struct {
		InvocationTaskSet []TATInvocationTask `json:"InvocationTaskSet"`
		RequestID         string              `json:"RequestId"`
	} `json:"Response"`
}

type DescribeTATInvocationsRequest

type DescribeTATInvocationsRequest struct {
	InvocationIDs []string `json:"InvocationIds,omitempty"`
}

type DescribeTATInvocationsResponse

type DescribeTATInvocationsResponse struct {
	Response struct {
		InvocationSet []TATInvocation `json:"InvocationSet"`
		RequestID     string          `json:"RequestId"`
	} `json:"Response"`
}

type DetachRolePolicyRequest

type DetachRolePolicyRequest struct {
	PolicyID       *uint64 `json:"PolicyId,omitempty"`
	DetachRoleName *string `json:"DetachRoleName,omitempty"`
}

type DetachRolePolicyResponse

type DetachRolePolicyResponse struct {
	Response struct {
		RequestID string `json:"RequestId"`
	} `json:"Response"`
}

type DetachUserPolicyRequest

type DetachUserPolicyRequest struct {
	PolicyID  *uint64 `json:"PolicyId,omitempty"`
	DetachUin *uint64 `json:"DetachUin,omitempty"`
}

type DetachUserPolicyResponse

type DetachUserPolicyResponse struct {
	Response struct {
		RequestID string `json:"RequestId"`
	} `json:"Response"`
}

type DomainListItem

type DomainListItem struct {
	Name      *string `json:"Name"`
	Status    *string `json:"Status"`
	DNSStatus *string `json:"DNSStatus"`
}

type GetCallerIdentityRequest

type GetCallerIdentityRequest struct{}

type GetCallerIdentityResponse

type GetCallerIdentityResponse struct {
	Response struct {
		Arn       string `json:"Arn"`
		Type      string `json:"Type"`
		UserID    string `json:"UserId"`
		RequestID string `json:"RequestId"`
	} `json:"Response"`
}

type GetPolicyRequest

type GetPolicyRequest struct {
	PolicyID *uint64 `json:"PolicyId,omitempty"`
}

type GetPolicyResponse

type GetPolicyResponse struct {
	Response struct {
		PolicyDocument *string `json:"PolicyDocument"`
		RequestID      string  `json:"RequestId"`
	} `json:"Response"`
}

type GetUserAppIDRequest

type GetUserAppIDRequest struct{}

type GetUserAppIDResponse

type GetUserAppIDResponse struct {
	Response struct {
		OwnerUin  *string `json:"OwnerUin"`
		RequestID string  `json:"RequestId"`
	} `json:"Response"`
}

type GetUserRequest

type GetUserRequest struct {
	Name *string `json:"Name,omitempty"`
}

type GetUserResponse

type GetUserResponse struct {
	Response struct {
		Uin       *uint64 `json:"Uin"`
		Name      *string `json:"Name"`
		RequestID string  `json:"RequestId"`
	} `json:"Response"`
}

type HTTPStatusError

type HTTPStatusError struct {
	StatusCode int
	Status     string
	Body       string
}

func (*HTTPStatusError) Error

func (e *HTTPStatusError) Error() string

type LighthouseInstanceInfo

type LighthouseInstanceInfo struct {
	InstanceID       *string  `json:"InstanceId"`
	InstanceName     *string  `json:"InstanceName"`
	InstanceState    *string  `json:"InstanceState"`
	PublicAddresses  []string `json:"PublicAddresses"`
	PrivateAddresses []string `json:"PrivateAddresses"`
	PlatformType     *string  `json:"PlatformType"`
}

type LighthouseRegionInfo

type LighthouseRegionInfo struct {
	Region *string `json:"Region"`
}

type ListAttachedUserAllPoliciesRequest

type ListAttachedUserAllPoliciesRequest struct {
	TargetUin    *uint64 `json:"TargetUin,omitempty"`
	Rp           *uint64 `json:"Rp,omitempty"`
	Page         *uint64 `json:"Page,omitempty"`
	AttachType   *uint64 `json:"AttachType,omitempty"`
	StrategyType *uint64 `json:"StrategyType,omitempty"`
	Keyword      *string `json:"Keyword,omitempty"`
}

type ListAttachedUserAllPoliciesResponse

type ListAttachedUserAllPoliciesResponse struct {
	Response struct {
		PolicyList []AttachedUserPolicy `json:"PolicyList"`
		TotalNum   *uint64              `json:"TotalNum"`
		RequestID  string               `json:"RequestId"`
	} `json:"Response"`
}

type ListUsersRequest

type ListUsersRequest struct{}

type ListUsersResponse

type ListUsersResponse struct {
	Response struct {
		Data      []SubAccountInfo `json:"Data"`
		RequestID string           `json:"RequestId"`
	} `json:"Response"`
}

type MariaDBInstanceInfo

type MariaDBInstanceInfo struct {
	InstanceID *string `json:"InstanceId"`
	DBVersion  *string `json:"DbVersion"`
	Region     *string `json:"Region"`
	WanStatus  *int64  `json:"WanStatus"`
	WanDomain  *string `json:"WanDomain"`
	WanPort    *int64  `json:"WanPort"`
	Vip        *string `json:"Vip"`
	Vport      *int64  `json:"Vport"`
}

type MariaDBRegionInfo

type MariaDBRegionInfo struct {
	Region *string `json:"Region"`
}

type Option

type Option func(*Client)

func WithBaseURL

func WithBaseURL(rawURL string) Option

func WithClock

func WithClock(now func() time.Time) Option

func WithHTTPClient

func WithHTTPClient(client *http.Client) Option

func WithLanguage

func WithLanguage(language string) Option

func WithRequestClient

func WithRequestClient(name string) Option

func WithRetryPolicy

func WithRetryPolicy(policy RetryPolicy) Option

type PostgresInstanceInfo

type PostgresInstanceInfo struct {
	DBInstanceID      *string           `json:"DBInstanceId"`
	DBEngine          *string           `json:"DBEngine"`
	DBInstanceVersion *string           `json:"DBInstanceVersion"`
	Region            *string           `json:"Region"`
	DBInstanceNetInfo []PostgresNetInfo `json:"DBInstanceNetInfo"`
}

type PostgresNetInfo

type PostgresNetInfo struct {
	Address *string `json:"Address"`
	IP      *string `json:"Ip"`
	Port    *uint64 `json:"Port"`
	NetType *string `json:"NetType"`
	Status  *string `json:"Status"`
}

type PostgresRegionInfo

type PostgresRegionInfo struct {
	Region      *string `json:"Region"`
	RegionState *string `json:"RegionState"`
}

type RecordListItem

type RecordListItem struct {
	Name   *string `json:"Name"`
	Type   *string `json:"Type"`
	Value  *string `json:"Value"`
	Status *string `json:"Status"`
}

type Request

type Request struct {
	Service         string
	Version         string
	Action          string
	Region          string
	Method          string
	Path            string
	Query           url.Values
	Headers         http.Header
	Body            any
	Idempotent      bool
	UnsignedPayload bool
	Scheme          string
	Host            string
}

type RetryPolicy

type RetryPolicy = httpclient.RetryPolicy

func DefaultRetryPolicy

func DefaultRetryPolicy() RetryPolicy

type RunTATCommandRequest

type RunTATCommandRequest struct {
	Content     *string  `json:"Content,omitempty"`
	InstanceIDs []string `json:"InstanceIds,omitempty"`
	CommandType *string  `json:"CommandType,omitempty"`
}

type RunTATCommandResponse

type RunTATCommandResponse struct {
	Response struct {
		CommandID    *string `json:"CommandId"`
		InvocationID *string `json:"InvocationId"`
		RequestID    string  `json:"RequestId"`
	} `json:"Response"`
}

type SQLServerInstanceInfo

type SQLServerInstanceInfo struct {
	InstanceID   *string `json:"InstanceId"`
	VersionName  *string `json:"VersionName"`
	Version      *string `json:"Version"`
	Region       *string `json:"Region"`
	DNSPodDomain *string `json:"DnsPodDomain"`
	TgwWanVPort  *int64  `json:"TgwWanVPort"`
	Vip          *string `json:"Vip"`
	Vport        *int64  `json:"Vport"`
}

type SQLServerRegionInfo

type SQLServerRegionInfo struct {
	Region      *string `json:"Region"`
	RegionState *string `json:"RegionState"`
}

type SignInput

type SignInput struct {
	Method          string
	Service         string
	Host            string
	Path            string
	Query           string
	ContentType     string
	Timestamp       time.Time
	Payload         []byte
	UnsignedPayload bool
}

type Signature

type Signature struct {
	Authorization    string
	CanonicalRequest string
	StringToSign     string
	CredentialScope  string
	SignedHeaders    string
	PayloadHash      string
}

type SubAccountInfo

type SubAccountInfo struct {
	Uin          *uint64 `json:"Uin"`
	Name         *string `json:"Name"`
	ConsoleLogin *uint64 `json:"ConsoleLogin"`
	CreateTime   *string `json:"CreateTime"`
}

type TATInvocation

type TATInvocation struct {
	InvocationID               *string                  `json:"InvocationId"`
	InvocationTaskBasicInfoSet []TATInvocationTaskBasic `json:"InvocationTaskBasicInfoSet"`
}

type TATInvocationTask

type TATInvocationTask struct {
	InvocationID     *string        `json:"InvocationId"`
	InvocationTaskID *string        `json:"InvocationTaskId"`
	TaskStatus       *string        `json:"TaskStatus"`
	InstanceID       *string        `json:"InstanceId"`
	TaskResult       *TATTaskResult `json:"TaskResult"`
	ErrorInfo        *string        `json:"ErrorInfo"`
}

type TATInvocationTaskBasic

type TATInvocationTaskBasic struct {
	InvocationTaskID *string `json:"InvocationTaskId"`
	TaskStatus       *string `json:"TaskStatus"`
	InstanceID       *string `json:"InstanceId"`
}

type TATTaskResult

type TATTaskResult struct {
	ExitCode *int64  `json:"ExitCode"`
	Output   *string `json:"Output"`
}

type TC3Signer

type TC3Signer struct{}

func (TC3Signer) Sign

func (s TC3Signer) Sign(credential auth.Credential, in SignInput) (Signature, error)

Jump to

Keyboard shortcuts

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