cloudaws

package
v0.0.27 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWS

type AWS struct {
	Region string
	// contains filtered or unexported fields
}

AWS implements the AWSAdapter interface and holds the configuration for AWS services.

func (*AWS) NewAutoScaling

func (a *AWS) NewAutoScaling() *autoscaling.Client

NewAutoScaling creates a new Auto Scaling client.

Returns:

  • *autoscaling.Client: A new Auto Scaling client.

func (*AWS) NewDynamoDB

func (a *AWS) NewDynamoDB() *dynamodb.Client

NewDynamoDB creates a new DynamoDB client.

Returns:

  • *dynamodb.Client: A new DynamoDB client.

func (*AWS) NewEC2

func (a *AWS) NewEC2() *ec2.Client

NewEC2 creates a new Elastic Compute Cloud (EC2) client.

Returns:

  • *ec2.Client: A new EC2 client.

func (*AWS) NewECS

func (a *AWS) NewECS() *ecs.Client

NewECS creates a new Elastic Container Service (ECS) client.

Returns:

  • *ecs.Client: A new ECS client.

func (*AWS) NewEKS

func (a *AWS) NewEKS() *eks.Client

NewEKS creates a new Elastic Kubernetes Service (EKS) client.

Returns:

  • *eks.Client: A new EKS client.

func (*AWS) NewIAM

func (a *AWS) NewIAM() *iam.Client

NewIAM creates a new Identity and Access Management (IAM) client.

Returns:

  • *iam.Client: A new IAM client.

func (*AWS) NewRDS

func (a *AWS) NewRDS() *rds.Client

NewRDS creates a new Relational Database Service (RDS) client.

Returns:

  • *rds.Client: A new RDS client.

func (*AWS) NewS3

func (a *AWS) NewS3() *s3.Client

NewS3 creates a new Simple Storage Service (S3) client.

Returns:

  • *s3.Client: A new S3 client.

func (*AWS) NewSNS

func (a *AWS) NewSNS() *sns.Client

NewSNS creates a new Simple Notification Service (SNS) client.

Returns:

  • *sns.Client: A new SNS client.

func (*AWS) NewSQS

func (a *AWS) NewSQS() *sqs.Client

NewSQS creates a new Simple Queue Service (SQS) client.

Returns:

  • *sqs.Client: A new SQS client.

type AWSAdapter

type AWSAdapter interface {
	// NewSNS creates a new Simple Notification Service (SNS) client.
	NewSNS() *sns.Client

	// NewSQS creates a new Simple Queue Service (SQS) client.
	NewSQS() *sqs.Client

	// NewS3 creates a new Simple Storage Service (S3) client.
	NewS3() *s3.Client

	// NewRDS creates a new Relational Database Service (RDS) client.
	NewRDS() *rds.Client

	// NewEC2 creates a new Elastic Compute Cloud (EC2) client.
	NewEC2() *ec2.Client

	// NewIAM creates a new Identity and Access Management (IAM) client.
	NewIAM() *iam.Client

	// NewDynamoDB creates a new DynamoDB client.
	NewDynamoDB() *dynamodb.Client

	// NewAutoScaling creates a new Auto Scaling client.
	NewAutoScaling() *autoscaling.Client

	// NewECS creates a new Elastic Container Service (ECS) client.
	NewECS() *ecs.Client

	// NewEKS creates a new Elastic Kubernetes Service (EKS) client.
	NewEKS() *eks.Client
}

AWSAdapter defines an interface for creating various AWS service clients.

func NewAWS

func NewAWS(region string) (AWSAdapter, error)

NewAWS creates a new instance of AWS with the specified region. It requires AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables to be set.

Parameters:

  • region: The AWS region to use.

Returns:

  • AWSAdapter: An interface for creating AWS service clients.
  • error: An error if the AWS configuration could not be loaded.

Jump to

Keyboard shortcuts

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