handlers

package
v0.0.0-...-9264c10 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConfig

func NewConfig(authMethod string, profile string, region string, timezone string, humanize bool, debug bool) (*aws.Config, error)

NewConfig initializes AWS Client config

func NewConfigV2

func NewConfigV2(ctx context.Context, cloudConfig CloudConfig, timezone string, humanize bool, debug bool) (*aws.Config, error)

NewConfig initializes AWS Client config

Types

type AWSClientImpl

type AWSClientImpl struct {
	EC2 *ec2.Client
	ELB *elasticloadbalancingv2.Client
	STS *sts.Client
}

func (*AWSClientImpl) DeleteListener

Similarly, implement ELB methods:

func (*AWSClientImpl) DeleteVolume

func (c *AWSClientImpl) DeleteVolume(ctx context.Context, params *ec2.DeleteVolumeInput, optFns ...func(*ec2.Options)) (*ec2.DeleteVolumeOutput, error)

func (*AWSClientImpl) DescribeVolumes

func (c *AWSClientImpl) DescribeVolumes(ctx context.Context, params *ec2.DescribeVolumesInput, optFns ...func(*ec2.Options)) (*ec2.DescribeVolumesOutput, error)

func (*AWSClientImpl) GetCallerIdentity

func (c *AWSClientImpl) GetCallerIdentity(ctx context.Context, params *sts.GetCallerIdentityInput, optFns ...func(*sts.Options)) (*sts.GetCallerIdentityOutput, error)

type CloudConfig

type CloudConfig struct {
	AuthMethod *string
	Profile    *string
	Region     *string
}

CloudConfig is the configuration for the AWS client

Jump to

Keyboard shortcuts

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