Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AWSTransport ¶
type AWSTransport struct {
*reverseproxy.HTTPTransport `json:"transport,omitempty"`
// Region is the AWS region (e.g. ap-south-1).
Region string `json:"region,omitempty"`
// Service is the AWS service name (e.g. s3).
Service string `json:"service,omitempty"`
// UseIamProvider: when true, use MinIO credentials.NewIAM("") (same as certmagic-s3). EC2 instance role, etc.
UseIamProvider bool `json:"use_iam_provider,omitempty"`
// Optional: explicit credentials. When set with use_iam_provider false, use MinIO NewStaticV4 (same as certmagic-s3).
AccessKeyID string `json:"access_key_id,omitempty"`
SecretAccessKey string `json:"secret_access_key,omitempty"`
// contains filtered or unexported fields
}
AWSTransport implements an HTTP transport that signs requests with AWS Signature Version 4. Credential resolution matches certmagic-s3: use_iam_provider uses MinIO's IAM provider (EC2 instance metadata); otherwise access_id/secret_key or AWS SDK default chain.
func (*AWSTransport) CaddyModule ¶
func (*AWSTransport) CaddyModule() caddy.ModuleInfo
CaddyModule returns the module info.
func (*AWSTransport) Provision ¶
func (a *AWSTransport) Provision(ctx caddy.Context) error
Provision prepares the transport. Uses same credential logic as certmagic-s3: use_iam_provider -> MinIO credentials.NewIAM(""); static keys -> MinIO NewStaticV4; else AWS SDK default chain.
func (*AWSTransport) RoundTrip ¶
RoundTrip signs the request with SigV4 and performs the round trip.
func (*AWSTransport) UnmarshalCaddyfile ¶
func (a *AWSTransport) UnmarshalCaddyfile(d *caddyfile.Dispenser) error
UnmarshalCaddyfile parses the Caddyfile block for `transport aws { ... }`.