Documentation ¶
Index ¶
- Constants
- func EC2MetadataEndpointMode_Values() []string
- func GetAwsAccountIDAndPartition(ctx context.Context, awsConfig aws.Config, c *Config) (string, string, error)
- func GetAwsConfig(ctx context.Context, c *Config) (context.Context, aws.Config, error)
- func IsCannotAssumeRoleError(err error) bool
- func IsNoValidCredentialSourcesError(err error) bool
- func ValidateRegion(region string) error
- type APNInfo
- type AssumeRole
- type AssumeRoleWithWebIdentity
- type CannotAssumeRoleError
- type Config
- type InvalidRegionError
- type NoValidCredentialSourcesError
- type UserAgentProduct
- type UserAgentProducts
Constants ¶
View Source
const ( EC2MetadataEndpointModeIPv4 = "IPv4" EC2MetadataEndpointModeIPv6 = "IPv6" )
Variables ¶
This section is empty.
Functions ¶
func EC2MetadataEndpointMode_Values ¶
func EC2MetadataEndpointMode_Values() []string
func GetAwsConfig ¶
func IsCannotAssumeRoleError ¶
IsCannotAssumeRoleError returns true if the error contains the CannotAssumeRoleError type.
func IsNoValidCredentialSourcesError ¶
IsNoValidCredentialSourcesError returns true if the error contains the NoValidCredentialSourcesError type.
func ValidateRegion ¶
ValidateRegion checks if the given region is a valid AWS region.
Types ¶
type AssumeRole ¶
type AssumeRole = config.AssumeRole
type AssumeRoleWithWebIdentity ¶
type AssumeRoleWithWebIdentity = config.AssumeRoleWithWebIdentity
type CannotAssumeRoleError ¶
type CannotAssumeRoleError = config.CannotAssumeRoleError
CannotAssumeRoleError occurs when AssumeRole cannot complete.
type InvalidRegionError ¶
type InvalidRegionError struct {
// contains filtered or unexported fields
}
func (*InvalidRegionError) Error ¶
func (e *InvalidRegionError) Error() string
type NoValidCredentialSourcesError ¶
type NoValidCredentialSourcesError = config.NoValidCredentialSourcesError
NoValidCredentialSourcesError occurs when all credential lookup methods have been exhausted without results.
type UserAgentProduct ¶
type UserAgentProduct = config.UserAgentProduct
type UserAgentProducts ¶
type UserAgentProducts = config.UserAgentProducts
Source Files ¶
Click to show internal directories.
Click to hide internal directories.