Documentation
¶
Index ¶
- Constants
- func DecodeError(statusCode int, body []byte) error
- func NewHTTPClient() *http.Client
- func NewTransport() *http.Transport
- type APIError
- type AddUserRequest
- type AddUserResponse
- type AttachRolePolicyRequest
- type AttachRolePolicyResponse
- type AttachUserPolicyRequest
- type AttachUserPolicyResponse
- type AttachedUserPolicy
- type CDBInstanceInfo
- type CDBRegionSellConf
- type CVMInstanceInfo
- type CVMRegionInfo
- type Client
- func (c *Client) AddUser(ctx context.Context, name, password string) (AddUserResponse, error)
- func (c *Client) AttachRolePolicy(ctx context.Context, roleName string, policyID uint64) (AttachRolePolicyResponse, error)
- func (c *Client) AttachUserPolicy(ctx context.Context, attachUin, policyID uint64) (AttachUserPolicyResponse, error)
- func (c *Client) CreateRole(ctx context.Context, roleName, policyDocument string, ...) (CreateRoleResponse, error)
- func (c *Client) DeleteRole(ctx context.Context, roleName string) (DeleteRoleResponse, error)
- func (c *Client) DeleteUser(ctx context.Context, name string, force uint64) (DeleteUserResponse, error)
- func (c *Client) DescribeAccountBalance(ctx context.Context, region string) (DescribeAccountBalanceResponse, error)
- func (c *Client) DescribeCDBInstances(ctx context.Context, region string) (DescribeCDBInstancesResponse, error)
- func (c *Client) DescribeCDBZoneConfig(ctx context.Context, region string) (DescribeCDBZoneConfigResponse, error)
- func (c *Client) DescribeCVMInstances(ctx context.Context, region string, offset, limit int64) (DescribeCVMInstancesResponse, error)
- func (c *Client) DescribeCVMRegions(ctx context.Context, region string) (DescribeCVMRegionsResponse, error)
- func (c *Client) DescribeDomainList(ctx context.Context, region string, offset, limit int64) (DescribeDomainListResponse, error)
- func (c *Client) DescribeLighthouseInstances(ctx context.Context, region string, offset, limit int64) (DescribeLighthouseInstancesResponse, error)
- func (c *Client) DescribeLighthouseRegions(ctx context.Context, region string) (DescribeLighthouseRegionsResponse, error)
- func (c *Client) DescribeMariaDBInstances(ctx context.Context, region string) (DescribeMariaDBInstancesResponse, error)
- func (c *Client) DescribeMariaDBSaleInfo(ctx context.Context, region string) (DescribeMariaDBSaleInfoResponse, error)
- func (c *Client) DescribePostgresInstances(ctx context.Context, region string) (DescribePostgresInstancesResponse, error)
- func (c *Client) DescribePostgresRegions(ctx context.Context, region string) (DescribePostgresRegionsResponse, error)
- func (c *Client) DescribeRecordList(ctx context.Context, region, domain string, offset, limit uint64) (DescribeRecordListResponse, error)
- func (c *Client) DescribeSQLServerInstances(ctx context.Context, region string) (DescribeSQLServerInstancesResponse, error)
- func (c *Client) DescribeSQLServerRegions(ctx context.Context, region string) (DescribeSQLServerRegionsResponse, error)
- func (c *Client) DescribeTATInvocationTasks(ctx context.Context, region string, invocationTaskIDs []string, ...) (DescribeTATInvocationTasksResponse, error)
- func (c *Client) DescribeTATInvocations(ctx context.Context, region string, invocationIDs []string) (DescribeTATInvocationsResponse, error)
- func (c *Client) DetachRolePolicy(ctx context.Context, roleName string, policyID uint64) (DetachRolePolicyResponse, error)
- func (c *Client) DetachUserPolicy(ctx context.Context, detachUin, policyID uint64) (DetachUserPolicyResponse, error)
- func (c *Client) Do(ctx context.Context, req Request, resp any) error
- func (c *Client) DoJSON(ctx context.Context, service string, version string, action string, ...) error
- func (c *Client) GetPolicy(ctx context.Context, policyID uint64) (GetPolicyResponse, error)
- func (c *Client) GetUser(ctx context.Context, name string) (GetUserResponse, error)
- func (c *Client) GetUserAppID(ctx context.Context) (GetUserAppIDResponse, error)
- func (c *Client) ListAttachedUserAllPolicies(ctx context.Context, targetUin, page, rp, attachType uint64) (ListAttachedUserAllPoliciesResponse, error)
- func (c *Client) ListUsers(ctx context.Context) (ListUsersResponse, error)
- func (c *Client) RunTATCommand(ctx context.Context, region, commandType, content string, instanceIDs []string) (RunTATCommandResponse, error)
- type CreateRoleRequest
- type CreateRoleResponse
- type DeleteRoleRequest
- type DeleteRoleResponse
- type DeleteUserRequest
- type DeleteUserResponse
- type DescribeAccountBalanceRequest
- type DescribeAccountBalanceResponse
- type DescribeCDBInstancesRequest
- type DescribeCDBInstancesResponse
- type DescribeCDBZoneConfigRequest
- type DescribeCDBZoneConfigResponse
- type DescribeCVMInstancesRequest
- type DescribeCVMInstancesResponse
- type DescribeCVMRegionsRequest
- type DescribeCVMRegionsResponse
- type DescribeDomainListRequest
- type DescribeDomainListResponse
- type DescribeLighthouseInstancesRequest
- type DescribeLighthouseInstancesResponse
- type DescribeLighthouseRegionsRequest
- type DescribeLighthouseRegionsResponse
- type DescribeMariaDBInstancesRequest
- type DescribeMariaDBInstancesResponse
- type DescribeMariaDBSaleInfoRequest
- type DescribeMariaDBSaleInfoResponse
- type DescribePostgresInstancesRequest
- type DescribePostgresInstancesResponse
- type DescribePostgresRegionsRequest
- type DescribePostgresRegionsResponse
- type DescribeRecordListRequest
- type DescribeRecordListResponse
- type DescribeSQLServerInstancesRequest
- type DescribeSQLServerInstancesResponse
- type DescribeSQLServerRegionsRequest
- type DescribeSQLServerRegionsResponse
- type DescribeTATInvocationTasksRequest
- type DescribeTATInvocationTasksResponse
- type DescribeTATInvocationsRequest
- type DescribeTATInvocationsResponse
- type DetachRolePolicyRequest
- type DetachRolePolicyResponse
- type DetachUserPolicyRequest
- type DetachUserPolicyResponse
- type DomainListItem
- type GetCallerIdentityRequest
- type GetCallerIdentityResponse
- type GetPolicyRequest
- type GetPolicyResponse
- type GetUserAppIDRequest
- type GetUserAppIDResponse
- type GetUserRequest
- type GetUserResponse
- type HTTPStatusError
- type LighthouseInstanceInfo
- type LighthouseRegionInfo
- type ListAttachedUserAllPoliciesRequest
- type ListAttachedUserAllPoliciesResponse
- type ListUsersRequest
- type ListUsersResponse
- type MariaDBInstanceInfo
- type MariaDBRegionInfo
- type Option
- type PostgresInstanceInfo
- type PostgresNetInfo
- type PostgresRegionInfo
- type RecordListItem
- type Request
- type RetryPolicy
- type RunTATCommandRequest
- type RunTATCommandResponse
- type SQLServerInstanceInfo
- type SQLServerRegionInfo
- type SignInput
- type Signature
- type SubAccountInfo
- type TATInvocation
- type TATInvocationTask
- type TATInvocationTaskBasic
- type TATTaskResult
- type TC3Signer
Constants ¶
View Source
const DefaultRegion = "ap-guangzhou"
View Source
const (
DefaultTimeout = 30 * time.Second
)
Variables ¶
This section is empty.
Functions ¶
func DecodeError ¶
func NewHTTPClient ¶
func NewTransport ¶
Types ¶
type AddUserRequest ¶
type AddUserResponse ¶
type AttachRolePolicyRequest ¶
type AttachRolePolicyResponse ¶
type AttachRolePolicyResponse struct {
Response struct {
RequestID string `json:"RequestId"`
} `json:"Response"`
}
type AttachUserPolicyRequest ¶
type AttachUserPolicyResponse ¶
type AttachUserPolicyResponse struct {
Response struct {
RequestID string `json:"RequestId"`
} `json:"Response"`
}
type AttachedUserPolicy ¶
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 CVMRegionInfo ¶
type CVMRegionInfo struct {
Region *string `json:"Region"`
}
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AttachRolePolicy ¶
func (*Client) AttachUserPolicy ¶
func (*Client) CreateRole ¶
func (*Client) DeleteRole ¶
func (*Client) DeleteUser ¶
func (*Client) DescribeAccountBalance ¶
func (*Client) DescribeCDBInstances ¶
func (*Client) DescribeCDBZoneConfig ¶
func (*Client) DescribeCVMInstances ¶
func (*Client) DescribeCVMRegions ¶
func (*Client) DescribeDomainList ¶
func (*Client) DescribeLighthouseInstances ¶
func (*Client) DescribeLighthouseRegions ¶
func (*Client) DescribeMariaDBInstances ¶
func (*Client) DescribeMariaDBSaleInfo ¶
func (*Client) DescribePostgresInstances ¶
func (*Client) DescribePostgresRegions ¶
func (*Client) DescribeRecordList ¶
func (*Client) DescribeSQLServerInstances ¶
func (*Client) DescribeSQLServerRegions ¶
func (*Client) DescribeTATInvocationTasks ¶
func (*Client) DescribeTATInvocations ¶
func (*Client) DetachRolePolicy ¶
func (*Client) DetachUserPolicy ¶
func (*Client) GetUserAppID ¶
func (c *Client) GetUserAppID(ctx context.Context) (GetUserAppIDResponse, error)
func (*Client) ListAttachedUserAllPolicies ¶
func (*Client) ListUsers ¶
func (c *Client) ListUsers(ctx context.Context) (ListUsersResponse, error)
func (*Client) RunTATCommand ¶
type CreateRoleRequest ¶
type CreateRoleResponse ¶
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 DeleteUserResponse ¶
type DeleteUserResponse struct {
Response struct {
RequestID string `json:"RequestId"`
} `json:"Response"`
}
type DescribeAccountBalanceRequest ¶
type DescribeAccountBalanceRequest struct{}
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 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 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 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 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 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 DetachRolePolicyResponse ¶
type DetachRolePolicyResponse struct {
Response struct {
RequestID string `json:"RequestId"`
} `json:"Response"`
}
type DetachUserPolicyRequest ¶
type DetachUserPolicyResponse ¶
type DetachUserPolicyResponse struct {
Response struct {
RequestID string `json:"RequestId"`
} `json:"Response"`
}
type DomainListItem ¶
type GetCallerIdentityRequest ¶
type GetCallerIdentityRequest struct{}
type GetPolicyRequest ¶
type GetPolicyRequest struct {
PolicyID *uint64 `json:"PolicyId,omitempty"`
}
type GetPolicyResponse ¶
type GetUserAppIDRequest ¶
type GetUserAppIDRequest struct{}
type GetUserAppIDResponse ¶
type GetUserRequest ¶
type GetUserRequest struct {
Name *string `json:"Name,omitempty"`
}
type GetUserResponse ¶
type HTTPStatusError ¶
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 WithHTTPClient ¶
func WithLanguage ¶
func WithRequestClient ¶
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 PostgresRegionInfo ¶
type RecordListItem ¶
type RetryPolicy ¶
type RetryPolicy struct {
MaxAttempts int
BaseDelay time.Duration
MaxDelay time.Duration
Sleep func(context.Context, time.Duration) error
}
func DefaultRetryPolicy ¶
func DefaultRetryPolicy() RetryPolicy
type RunTATCommandRequest ¶
type RunTATCommandResponse ¶
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 SubAccountInfo ¶
type TATInvocation ¶
type TATInvocation struct {
InvocationID *string `json:"InvocationId"`
InvocationTaskBasicInfoSet []TATInvocationTaskBasic `json:"InvocationTaskBasicInfoSet"`
}
type TATInvocationTask ¶
type TATInvocationTaskBasic ¶
type TATTaskResult ¶
Click to show internal directories.
Click to hide internal directories.