config

package
v2.0.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2021 License: MPL-2.0 Imports: 2 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    []APNProduct
}

func (APNInfo) BuildUserAgentString

func (apn APNInfo) BuildUserAgentString() string

Builds the user-agent string for APN

type APNProduct

type APNProduct struct {
	Name    string
	Version string
	Comment string
}

type AssumeRole

type AssumeRole struct {
	RoleARN           string
	DurationSeconds   int
	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
	DebugLogging           bool
	HTTPProxy              string
	IamEndpoint            string
	Insecure               bool
	MaxRetries             int
	Profile                string
	Region                 string
	SecretKey              string
	SharedCredentialsFiles []string
	SharedConfigFiles      []string
	SkipCredsValidation    bool
	SkipMetadataApiCheck   bool
	StsEndpoint            string
	Token                  string
}

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

Jump to

Keyboard shortcuts

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