ec2meta

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 5, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	GetInstanceIdentityDocument() (*ec2metadata.EC2InstanceIdentityDocument, error)
}

func NewClient

func NewClient(mock bool) Client

type ClientImpl

type ClientImpl struct {
	// contains filtered or unexported fields
}

func (ClientImpl) GetInstanceIdentityDocument

func (c ClientImpl) GetInstanceIdentityDocument() (*ec2metadata.EC2InstanceIdentityDocument, error)

type ClientMock

type ClientMock struct {
}

func (ClientMock) GetInstanceIdentityDocument

func (c ClientMock) GetInstanceIdentityDocument() (*ec2metadata.EC2InstanceIdentityDocument, error)

type Config

type Config struct {
	UseMock bool
}

Jump to

Keyboard shortcuts

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