Documentation
¶
Index ¶
- Constants
- func DecodeError(statusCode int, body []byte) error
- func ErrorCode(err error) string
- func NewHTTPClient() *http.Client
- func NewTransport() *http.Transport
- type APIError
- type AttachedUserPolicy
- type Client
- func (c *Client) AttachUserPolicy(ctx context.Context, region, userName, policyArn string) error
- func (c *Client) CreateLoginProfile(ctx context.Context, region, userName, password string) error
- func (c *Client) CreateUser(ctx context.Context, region, userName string) (CreateUserOutput, error)
- func (c *Client) DeleteLoginProfile(ctx context.Context, region, userName string) error
- func (c *Client) DeleteUser(ctx context.Context, region, userName string) error
- func (c *Client) DescribeInstances(ctx context.Context, region, nextToken string, maxResults int) (DescribeInstancesOutput, error)
- func (c *Client) DescribeRegions(ctx context.Context, region string) (DescribeRegionsOutput, error)
- func (c *Client) DetachUserPolicy(ctx context.Context, region, userName, policyArn string) error
- func (c *Client) DoRESTXML(ctx context.Context, req Request, resp any) error
- func (c *Client) DoXML(ctx context.Context, req Request, resp any) error
- func (c *Client) GetBucketLocation(ctx context.Context, region, bucket string) (GetBucketLocationOutput, error)
- func (c *Client) GetCallerIdentity(ctx context.Context, region string) (GetCallerIdentityOutput, error)
- func (c *Client) GetLoginProfile(ctx context.Context, region, userName string) (GetLoginProfileOutput, error)
- func (c *Client) ListAttachedUserPolicies(ctx context.Context, region, userName, marker string) (ListAttachedUserPoliciesOutput, error)
- func (c *Client) ListBuckets(ctx context.Context, region string) (ListBucketsOutput, error)
- func (c *Client) ListObjectsV2(ctx context.Context, region, bucket, continuationToken string, maxKeys int) (ListObjectsV2Output, error)
- func (c *Client) ListUsers(ctx context.Context, region, marker string) (ListUsersOutput, error)
- type CreateUserOutput
- type DescribeInstancesOutput
- type DescribeRegionsOutput
- type EC2Instance
- type EC2Region
- type EC2Tag
- type GetBucketLocationOutput
- type GetCallerIdentityOutput
- type GetLoginProfileOutput
- type IAMUser
- type ListAttachedUserPoliciesOutput
- type ListBucketsOutput
- type ListObjectsV2Output
- type ListUsersOutput
- type Option
- type Request
- type RetryPolicy
- type S3Bucket
- type S3Object
- type SigV4Signer
- type SignInput
- type Signature
Constants ¶
View Source
const (
DefaultTimeout = 30 * time.Second
)
Variables ¶
This section is empty.
Functions ¶
func DecodeError ¶
func NewHTTPClient ¶
func NewTransport ¶
Types ¶
type AttachedUserPolicy ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AttachUserPolicy ¶
func (*Client) CreateLoginProfile ¶
func (*Client) CreateUser ¶
func (*Client) DeleteLoginProfile ¶
func (*Client) DeleteUser ¶
func (*Client) DescribeInstances ¶
func (*Client) DescribeRegions ¶
func (*Client) DetachUserPolicy ¶
func (*Client) GetBucketLocation ¶
func (*Client) GetCallerIdentity ¶
func (*Client) GetLoginProfile ¶
func (*Client) ListAttachedUserPolicies ¶
func (*Client) ListBuckets ¶
func (*Client) ListObjectsV2 ¶
type CreateUserOutput ¶
type DescribeInstancesOutput ¶
type DescribeInstancesOutput struct {
Instances []EC2Instance
NextToken string
}
type DescribeRegionsOutput ¶
type DescribeRegionsOutput struct {
Regions []EC2Region
}
type EC2Instance ¶
type GetBucketLocationOutput ¶
type GetBucketLocationOutput struct {
Region string
}
type GetCallerIdentityOutput ¶
type GetLoginProfileOutput ¶
type ListAttachedUserPoliciesOutput ¶
type ListAttachedUserPoliciesOutput struct {
Policies []AttachedUserPolicy
Marker string
IsTruncated bool
RequestID string
}
type ListBucketsOutput ¶
type ListBucketsOutput struct {
Buckets []S3Bucket
}
type ListObjectsV2Output ¶
type ListUsersOutput ¶
type Option ¶
type Option func(*Client)
func WithBaseURL ¶
func WithHTTPClient ¶
func WithRetryPolicy ¶
func WithRetryPolicy(policy RetryPolicy) Option
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 SigV4Signer ¶
type SigV4Signer struct{}
func (SigV4Signer) Sign ¶
func (s SigV4Signer) Sign(credential auth.Credential, input SignInput) (Signature, error)
Click to show internal directories.
Click to hide internal directories.