providerid

package
v0.11.0-alpha.4-test Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 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