machine

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PassiveBoot  = "passive"
	ActiveBoot   = "active"
	RecoveryBoot = "recovery"
	LiveCDBoot   = "liveCD"
	NetBoot      = "netboot"
	UnknownBoot  = "unknown"
)

Variables

This section is empty.

Functions

func BootFrom

func BootFrom() string

BootFrom returns the booting partition of the SUT.

func CreateSentinel

func CreateSentinel(f string) error

func DotToYAML

func DotToYAML(file string) ([]byte, error)

func ExecuteCloudConfig

func ExecuteCloudConfig(file, stage string) error

func ExecuteInlineCloudConfig

func ExecuteInlineCloudConfig(cloudConfig, stage string) error

func Exists added in v1.1.0

func Exists(path string) bool

func FindCommand added in v1.2.0

func FindCommand(def string, options []string) string

func Interfaces added in v1.5.0

func Interfaces() (in []string)

func K3sEnvUnit

func K3sEnvUnit(unit string) string

func LocalIPs added in v1.5.0

func LocalIPs() (ips []string)

func Mount added in v1.1.0

func Mount(label, mountpoint string) error

func Remount added in v1.1.4

func Remount(opt, path string) error

func SentinelExist

func SentinelExist(f string) bool

func UUID

func UUID() string

func Umount added in v1.1.0

func Umount(path string) error

Types

type Service

type Service interface {
	WriteUnit() error
	Start() error
	OverrideCmd(string) error
	Enable() error
	Restart() error
}

func Getty

func Getty(i int) (Service, error)

func K3s

func K3s() (Service, error)

func K3sAgent

func K3sAgent() (Service, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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