mockdata

package
v2.0.0-beta.60 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: MPL-2.0 Imports: 7 Imported by: 0

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.

Jump to

Keyboard shortcuts

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