Documentation
¶
Overview ¶
Package aws assembles CloudEmu's AWS-compatible HTTP server.
New takes a Drivers bundle and returns a *server.Server preloaded with the handler for each non-nil driver. Consumers that want a single service can skip this package and register the handler directly on their own server.Server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
New returns a server that speaks the AWS SDK wire protocols for every non-nil driver in d. Handlers are registered most-specific-first so the dispatch is unambiguous:
- DynamoDB matches on X-Amz-Target header (JSON-RPC).
- EC2 matches on Action= (form-encoded POST or query string). The EC2 handler also serves VPC/networking ops since real AWS uses one endpoint for both.
- S3 is the REST fallback.
Types ¶
type Drivers ¶ added in v1.5.1
type Drivers struct {
S3 storagedriver.Bucket
DynamoDB dbdriver.Database
EC2 computedriver.Compute
VPC netdriver.Networking
}
Drivers bundles the driver interfaces the AWS server can expose. Leave a field nil to omit that service; the server returns 501 Not Implemented for any request that no registered handler matches.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package dynamodb implements the DynamoDB JSON-RPC protocol as a server.Handler.
|
Package dynamodb implements the DynamoDB JSON-RPC protocol as a server.Handler. |
|
Package ec2 implements the AWS EC2 query-protocol as a server.Handler.
|
Package ec2 implements the AWS EC2 query-protocol as a server.Handler. |
|
Package s3 implements the S3 REST+XML protocol as a server.Handler.
|
Package s3 implements the S3 REST+XML protocol as a server.Handler. |