Documentation ¶
Index ¶
- Constants
- Variables
- func DumpRequest(r *http.Request) string
- func DumpResponse(r *http.Response) string
- func HideSecureHeaders(dump []byte) []byte
- func IsAWSError(err error, code string) bool
- type Account
- func (a *Account) ARN() string
- func (a *Account) Alias() string
- func (a *Account) Aliases() []string
- func (a *Account) DisabledRegions() []string
- func (a *Account) ID() string
- func (a *Account) Regions() []string
- func (a *Account) ResourceTypeToServiceType(regionName, resourceType string) string
- func (a *Account) UserID() string
- type Credentials
Constants ¶
View Source
const Default = "default"
Default is a generic constant for the word default
View Source
const ErrCodeInvalidAction = "InvalidAction"
View Source
const ErrCodeOperationNotPermitted = "OperationNotPermitted"
View Source
const (
GlobalRegionID = "global"
)
View Source
const StateDeleted = "deleted"
StateDeleted is a generic constant for the word deleted for state
View Source
const StateDeleting = "deleting"
StateDeleting is a generic constant for the word deleting for state
View Source
const StateRejected = "rejected"
StateRejected is a generic constant for the word rejected for state
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 ¶
func IsAWSError ¶
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) DisabledRegions ¶
DisabledRegions returns the list of regions that are disabled for the account
func (*Account) ResourceTypeToServiceType ¶
type Credentials ¶
type Credentials struct { Profile string AccessKeyID string SecretAccessKey string SessionToken string AssumeRoleArn string ExternalID string RoleSessionName 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
Click to show internal directories.
Click to hide internal directories.