aws

package
v1.1.0-beta.22 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2022 License: MIT Imports: 10 Imported by: 2

Documentation

Index

Constants

View Source
const (
	PluginsRoot = root + ".plugins"
)

Variables

This section is empty.

Functions

func ConfigAdd

func ConfigAdd(path string)

func NewConfig

func NewConfig(ctx context.Context, plugins ...Plugin) (aws.Config, error)

NewConfig returns aws config.

func NewConfigWithConfigPath

func NewConfigWithConfigPath(ctx context.Context, path string, plugins ...Plugin) (aws.Config, error)

NewConfigWithOptions returns aws config with options from config path.

func NewConfigWithOptions

func NewConfigWithOptions(ctx context.Context, options *Options, plugins ...Plugin) (aws.Config, error)

NewConfigWithOptions returns aws config with options.

Types

type Options

type Options struct {
	AccessKeyId                 string
	SecretAccessKey             string
	DefaultRegion               string
	SessionToken                string
	DefaultAccountNumber        string
	MaxAttempts                 int
	CustomEndpoint              OptionsCustomEndpoint
	HasRateLimit                bool
	MaxConnsPerHost             int
	MaxIdleConns                int
	MaxIdleConnsPerHost         int
	TimeoutMillis               time.Duration
	KeepAliveMillis             time.Duration
	IdleConnTimeoutMillis       time.Duration
	ResponseHeaderTimeoutMillis time.Duration
	HttpClient                  client.Options
}

func NewOptions

func NewOptions() (*Options, error)

NewOptions returns options from config file or environment vars.

func NewOptionsWithPath

func NewOptionsWithPath(path string) (opts *Options, err error)

NewOptionsWithPath unmarshals options based a given key path.

type OptionsCustomEndpoint

type OptionsCustomEndpoint map[string]struct {
	PartitionID       string `config:"partitionId"`
	URL               string `config:"url"`
	SigningRegion     string
	HostnameImmutable bool
}

type Plugin

type Plugin func(context.Context, *aws.Config) error

Plugin defines a function to process plugin.

Directories

Path Synopsis
client
sns
sqs
examples
s3
sns
sqs
plugins

Jump to

Keyboard shortcuts

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