metadata

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2018 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

View Source
const (
	FakeZone       = "country-region-zone"
	FakeSecondZone = "country-region-zone2"
	FakeProject    = "test-project"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MetadataService

type MetadataService interface {
	GetZone() string
	GetProject() string
	GetName() string
}

MetadataService is a fakeable interface exposing necessary data from the GCE Metadata service

func NewFakeService

func NewFakeService() MetadataService

func NewMetadataService

func NewMetadataService() (MetadataService, error)

Jump to

Keyboard shortcuts

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