cloudprovider

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: Apache-2.0 Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 added in v0.0.14

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

NewAutoScaling creates a new Auto Scaling client.

Returns:

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

func (*AWS) NewDynamoDB added in v0.0.14

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

NewDynamoDB creates a new DynamoDB client.

Returns:

  • *dynamodb.Client: A new DynamoDB client.

func (*AWS) NewEC2 added in v0.0.14

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 added in v0.0.14

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 added in v0.0.14

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 added in v0.0.14

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 added in v0.0.14

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 added in v0.0.12

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