aws

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAWSConfigNotFound = errors.New("aws configuration not found")
	ErrProfileNotFound   = errors.New("aws profile not found")
	ErrRegionNotFound    = errors.New("aws region not found")
)

Common errors

Functions

This section is empty.

Types

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

Provider represents the AWS cloud provider.

func New

func New() *Provider

New creates a new AWS provider.

func (*Provider) Description

func (p *Provider) Description() string

Description returns the provider's description.

func (*Provider) GetProfiles

func (p *Provider) GetProfiles() ([]string, error)

GetProfiles returns all available AWS profiles from the user's home directory.

func (*Provider) LoadConfig

func (p *Provider) LoadConfig(profile, region string) error

LoadConfig loads AWS configuration based on the provided profile and region.

func (*Provider) Name

func (p *Provider) Name() string

Name returns the provider's name.

func (*Provider) Services

func (p *Provider) Services() []cloud.Service

Services returns all available services for this provider.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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