mockec2

package
v37.5.1 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2020 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metadata

type Metadata struct {
	Document         func() interface{}
	Signature        string
	AMIID            string
	AvailabilityZone string
	InstanceType     string
	InstanceID       string
	PublicHostname   string
	LocalIPv4        net.IP
	PublicIPv4       net.IP
	UserData         func() interface{}
	Terminating      bool
	WorkerConfig     map[string]interface{}
}

func New

func New(publicConfig *gwconfig.PublicConfig, providerID string, publicFiles map[string]interface{}) *Metadata

func (*Metadata) RegisterService

func (ec2 *Metadata) RegisterService(r *mux.Router)

func (*Metadata) TerminationTime

func (ec2 *Metadata) TerminationTime(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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