metadata

package
v1.13.6 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 3 Imported by: 2

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)

Jump to

Keyboard shortcuts

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