aws

package
v0.0.0-...-44f2bf6 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Endpoint string
	Region   string

	DisableSSL bool

	HTTP     HTTP
	Provider Provider
	TLS      TLS
}

func (Config) GetAWSSession

func (c Config) GetAWSSession() (client.ConfigProvider, error)

func (Config) GetHttpClient

func (c Config) GetHttpClient() (*http.Client, error)

func (Config) GetProvider

func (c Config) GetProvider() (credentials.Provider, error)

func (Config) GetRegion

func (c Config) GetRegion() string

type HTTP

type HTTP struct {
}

type Provider

type Provider struct {
	Type ProviderType

	Config ProviderConfig
	Static ProviderConfigStatic
	File   ProviderConfigFile

	Impersonate ProviderImpersonate
}

func (Provider) Provider

func (p Provider) Provider() (credentials.Provider, error)

type ProviderConfig

type ProviderConfig struct {
	Filename string
	Profile  string
}

type ProviderConfigFile

type ProviderConfigFile struct {
	AccessKeyIDFile     string
	SecretAccessKeyFile string
	SessionTokenFile    string
}

type ProviderConfigStatic

type ProviderConfigStatic struct {
	AccessKeyID     string
	SecretAccessKey string
	SessionToken    string
}

type ProviderImpersonate

type ProviderImpersonate struct {
	Impersonate bool

	Role string
	Name string
}

type ProviderType

type ProviderType string
const (
	ProviderTypeConfig ProviderType = "config"
	ProviderTypeStatic ProviderType = "static"
	ProviderTypeFile   ProviderType = "file"
)

type TLS

type TLS struct {
	Insecure bool
	CAFiles  []string
}

Jump to

Keyboard shortcuts

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