Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MockEc2MetadataCredentials = credentials.Value{ AccessKeyID: servicemocks.MockEc2MetadataAccessKey, ProviderName: ec2rolecreds.ProviderName, SecretAccessKey: servicemocks.MockEc2MetadataSecretKey, SessionToken: servicemocks.MockEc2MetadataSessionToken, } MockEcsCredentialsCredentials = credentials.Value{ AccessKeyID: servicemocks.MockEcsCredentialsAccessKey, ProviderName: endpointcreds.ProviderName, SecretAccessKey: servicemocks.MockEcsCredentialsSecretKey, SessionToken: servicemocks.MockEcsCredentialsSessionToken, } MockEnvCredentials = credentials.Value{ AccessKeyID: servicemocks.MockEnvAccessKey, ProviderName: credentials.EnvProviderName, SecretAccessKey: servicemocks.MockEnvSecretKey, } MockEnvCredentialsWithSessionToken = credentials.Value{ AccessKeyID: servicemocks.MockEnvAccessKey, ProviderName: credentials.EnvProviderName, SecretAccessKey: servicemocks.MockEnvSecretKey, SessionToken: servicemocks.MockEnvSessionToken, } MockStaticCredentials = credentials.Value{ AccessKeyID: servicemocks.MockStaticAccessKey, ProviderName: credentials.StaticProviderName, SecretAccessKey: servicemocks.MockStaticSecretKey, } MockStsAssumeRoleCredentials = credentials.Value{ AccessKeyID: servicemocks.MockStsAssumeRoleAccessKey, ProviderName: stscreds.ProviderName, SecretAccessKey: servicemocks.MockStsAssumeRoleSecretKey, SessionToken: servicemocks.MockStsAssumeRoleSessionToken, } MockStsAssumeRoleWithWebIdentityCredentials = credentials.Value{ AccessKeyID: servicemocks.MockStsAssumeRoleWithWebIdentityAccessKey, ProviderName: stscreds.WebIdentityProviderName, SecretAccessKey: servicemocks.MockStsAssumeRoleWithWebIdentitySecretKey, SessionToken: servicemocks.MockStsAssumeRoleWithWebIdentitySessionToken, } )
Functions ¶
func GetMockedAwsApiSession ¶
func GetMockedAwsApiSession(svcName string, endpoints []*servicemocks.MockEndpoint) (func(), *session.Session, error)
GetMockedAwsApiSession establishes an AWS session to a simulated AWS API server for a given service and route endpoints.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.