providerid

package
v0.10.19-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProviderName     string = "moc"
	ProviderIDPrefix string = ProviderName + "://"
)

Variables

This section is empty.

Functions

func FormatInstanceID

func FormatInstanceID(hostType HostType, machineName string) string

func FormatProviderID

func FormatProviderID(hostType HostType, machineName string) string

Types

type HostType

type HostType string
const (
	HostTypeVM        HostType = "vm"
	HostTypeBareMetal HostType = "baremetal"
)

func ParseProviderID

func ParseProviderID(providerID string) (HostType, string, error)

Jump to

Keyboard shortcuts

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