provider

package
v0.2.18 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2021 License: MPL-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

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

type Config

type Config struct {
	Regions    []string  `yaml:"regions"`
	Accounts   []Account `yaml:"accounts"`
	AWSDebug   bool      `yaml:"aws_debug"`
	MaxRetries int       `yaml:"max_retries" default:"5"`
	MaxBackoff int       `yaml:"max_backoff" default:"30"`
	// context timeout in seconds
	Timeout   int `yaml:"timeout" default:"-1"`
	Resources []struct {
		Name  string
		Other map[string]interface{} `yaml:",inline"`
	}
}

type Provider

type Provider struct {
	Logger hclog.Logger
	// contains filtered or unexported fields
}

func (*Provider) Fetch

func (p *Provider) Fetch(data []byte) error

func (*Provider) GenConfig

func (p *Provider) GenConfig() (string, error)

func (*Provider) Init

func (p *Provider) Init(driver string, dsn string, verbose bool) error

func (*Provider) NewRetryer added in v0.2.8

func (p *Provider) NewRetryer() func() aws.Retryer

type ServiceNewFunction

type ServiceNewFunction func(awsConfig aws.Config, db *database.Database, log hclog.Logger, accountID string, region string) resource.ClientInterface

Jump to

Keyboard shortcuts

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