Documentation ¶
Index ¶
Constants ¶
View Source
const (
GlobalRegionID = "global"
)
Variables ¶
View Source
var ( // DefaultRegionID The default region. Can be customized for non AWS implementations DefaultRegionID = endpoints.UsEast1RegionID // DefaultAWSPartitionID The default aws partition. Can be customized for non AWS implementations DefaultAWSPartitionID = endpoints.AwsPartitionID )
View Source
var (
RESecretHeader = regexp.MustCompile(`(?m:^([^:]*(Auth|Security)[^:]*):.*$)`)
)
Functions ¶
func DumpRequest ¶
func DumpResponse ¶
func HideSecureHeaders ¶
Types ¶
type Account ¶
type Account struct { Credentials // contains filtered or unexported fields }
func NewAccount ¶
func NewAccount(creds Credentials, endpoints config.CustomEndpoints) (*Account, error)
func (*Account) ResourceTypeToServiceType ¶
type Credentials ¶
type Credentials struct { Profile string AccessKeyID string SecretAccessKey string SessionToken string AssumeRoleArn string Credentials *credentials.Credentials CustomEndpoints config.CustomEndpoints // contains filtered or unexported fields }
func (*Credentials) HasAwsCredentials ¶
func (c *Credentials) HasAwsCredentials() bool
func (*Credentials) HasKeys ¶
func (c *Credentials) HasKeys() bool
func (*Credentials) HasProfile ¶
func (c *Credentials) HasProfile() bool
func (*Credentials) NewSession ¶
func (c *Credentials) NewSession(region, serviceType string) (*session.Session, error)
func (*Credentials) Validate ¶
func (c *Credentials) Validate() error
type ErrSkipRequest ¶
type ErrSkipRequest string
func (ErrSkipRequest) Error ¶
func (err ErrSkipRequest) Error() string
type ErrUnknownEndpoint ¶
type ErrUnknownEndpoint string
func (ErrUnknownEndpoint) Error ¶
func (err ErrUnknownEndpoint) Error() string
Click to show internal directories.
Click to hide internal directories.