Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InstanceID ¶
func InstanceID() (*types.InstanceID, error)
InstanceID returns the local instance ID for the test
Types ¶
type AwsVpcSubnetResolver ¶
type AwsVpcSubnetResolver struct {
// contains filtered or unexported fields
}
AwsVpcSubnetResolver is thin interface that resolves instance subnet from ec2metadata service. This helper is used instead of bringing AWS SDK to executor on purpose to keep executor dependencies minimal.
func NewAwsVpcSubnetResolver ¶
func NewAwsVpcSubnetResolver() *AwsVpcSubnetResolver
NewAwsVpcSubnetResolver creates AwsVpcSubnetResolver for default AWS endpoint
func (*AwsVpcSubnetResolver) ResolveSubnet ¶
func (r *AwsVpcSubnetResolver) ResolveSubnet() (string, error)
ResolveSubnet determines VPC subnet id on running AWS instance
type SubnetResolver ¶
SubnetResolver defines interface that can resolve subnet from environment
Click to show internal directories.
Click to hide internal directories.