config

package
v2.0.0-beta.7 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APNInfo

type APNInfo struct {
	PartnerName string
	Products    []UserAgentProduct
}

func (APNInfo) BuildUserAgentString

func (apn APNInfo) BuildUserAgentString() string

Builds the user-agent string for APN

type AssumeRole

type AssumeRole struct {
	RoleARN           string
	Duration          time.Duration
	ExternalID        string
	Policy            string
	PolicyARNs        []string
	SessionName       string
	Tags              map[string]string
	TransitiveTagKeys []string
}

type CannotAssumeRoleError

type CannotAssumeRoleError struct {
	Config *Config
	Err    error
}

CannotAssumeRoleError occurs when AssumeRole cannot complete.

func (CannotAssumeRoleError) Error

func (e CannotAssumeRoleError) Error() string

func (CannotAssumeRoleError) Unwrap

func (e CannotAssumeRoleError) Unwrap() error

type Config

type Config struct {
	AccessKey                      string
	APNInfo                        *APNInfo
	AssumeRole                     *AssumeRole
	CallerDocumentationURL         string
	CallerName                     string
	EC2MetadataServiceEndpoint     string
	EC2MetadataServiceEndpointMode string
	HTTPProxy                      string
	IamEndpoint                    string
	Insecure                       bool
	MaxRetries                     int
	Profile                        string
	Region                         string
	SecretKey                      string
	SharedCredentialsFiles         []string
	SharedConfigFiles              []string
	SkipCredsValidation            bool
	SkipEC2MetadataApiCheck        bool
	SkipRequestingAccountId        bool
	StsEndpoint                    string
	StsRegion                      string
	Token                          string
	UseDualStackEndpoint           bool
	UseFIPSEndpoint                bool
	UserAgent                      UserAgentProducts
}

func (*Config) NewCannotAssumeRoleError

func (c *Config) NewCannotAssumeRoleError(err error) CannotAssumeRoleError

func (*Config) NewNoValidCredentialSourcesError

func (c *Config) NewNoValidCredentialSourcesError(err error) NoValidCredentialSourcesError

type NoValidCredentialSourcesError

type NoValidCredentialSourcesError struct {
	Config *Config
	Err    error
}

NoValidCredentialSourcesError occurs when all credential lookup methods have been exhausted without results.

func (NoValidCredentialSourcesError) Error

func (NoValidCredentialSourcesError) Unwrap

type UserAgentProduct

type UserAgentProduct struct {
	Name    string
	Version string
	Comment string
}

type UserAgentProducts

type UserAgentProducts []UserAgentProduct

func (UserAgentProducts) BuildUserAgentString

func (ua UserAgentProducts) BuildUserAgentString() string

Jump to

Keyboard shortcuts

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