providerid

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 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