executor

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2016 License: Apache-2.0 Imports: 13 Imported by: 1

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

type SubnetResolver interface {
	ResolveSubnet() (string, error)
}

SubnetResolver defines interface that can resolve subnet from environment

Jump to

Keyboard shortcuts

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