Documentation ¶
Index ¶
Constants ¶
View Source
const ( FakeZone = "country-region-zone" FakeProject = "test-project" )
Variables ¶
View Source
var FakeMachineType = "n1-standard-1"
Functions ¶
func SetMachineType ¶ added in v0.5.0
func SetMachineType(s string)
Types ¶
type MetadataService ¶
type MetadataService interface { GetZone() string GetProject() string GetName() string GetMachineType() 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)
Click to show internal directories.
Click to hide internal directories.