Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrNoCredentials = errors.New("no credentials")
ErrNoCredentials stands in for anything that stops a credential being read.
Functions ¶
Types ¶
type Secrets ¶
Secrets stands in for Secrets Manager, which two resource kinds read a credential through.
func (*Secrets) GetSecretValue ¶
func (f *Secrets) GetSecretValue( _ context.Context, in *secretsmanager.GetSecretValueInput, _ ...func(*secretsmanager.Options), ) (*secretsmanager.GetSecretValueOutput, error)
type Target ¶
type Target struct {
// Endpoint the SDK is pointed at. Empty against an account, so that the SDK
// resolves each service's own.
Endpoint string
// Region every client is built for, and the one a signature is scoped to.
Region string
// Emulator says the endpoint is a stand-in, which is what makes test
// credentials safe and path-style addressing necessary.
Emulator bool
// Prefix goes in front of every resource name a suite creates, so that two
// runs sharing an account do not share a table.
Prefix string
}
Target is the AWS an integration suite runs against, an emulator on the machine running the tests by default, or a real account when one is configured.
func AWS ¶
AWS is what a suite's SetupSuite calls including where this run points, and a configuration for creating the infrastructure a deployment would have created.
func TargetFromEnv ¶
func TargetFromEnv() Target
TargetFromEnv reads where this run points. Configuring nothing is the ordinary case and uses the emulator that the compose file brings up.
func (Target) Config ¶
Config points the process at the target and returns a configuration built for it.
The environment is set as well as the configuration returned, because a provider builds its own clients from the ambient configuration: setting it here is what makes a suite exercise that path rather than one built for the test.
func (Target) Name ¶
Name is what a suite calls a resource it creates. Against an emulator that is usually the base name; against an account a prefix keeps concurrent runs, and the people sharing the account, out of each other's way.