aws

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2020 License: MPL-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProvider

func NewProvider(db *gorm.DB, log *zap.Logger) (provider.Interface, error)

Types

type Account added in v0.3.0

type Account struct {
	ID      string `mapstructure:"id"`
	RoleARN string `mapstructure:"role_arn"`
}

type Config

type Config struct {
	Regions    []string
	Accounts   []Account `mapstructure:"accounts"`
	LogLevel   *string   `mapstructure:"log_level"`
	MaxRetries *int      `mapstructure:"max_retries"`
	Resources  []struct {
		Name  string
		Other map[string]interface{} `mapstructure:",remain"`
	}
}

type Provider

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

func (*Provider) Run

func (p *Provider) Run(config interface{}) error

type ServiceNewFunction added in v0.5.2

type ServiceNewFunction func(session *session.Session, awsConfig *aws.Config, db *gorm.DB, log *zap.Logger, accountID string, region string) resource.ClientInterface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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