linuxvm

package
v0.7.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const CIDATAVolumeLabel = "CIDATA"
View Source
const DefaultHyperVDHCPNetworkConfig = `version: 2
ethernets:
  hyperv:
    match:
      driver: hv_netvsc
    dhcp4: true
    dhcp6: true`

Variables

This section is empty.

Functions

func Files

func Files(config SeedConfig) (map[string][]byte, error)

func HashPasswordSHA512

func HashPasswordSHA512(password string) (string, error)

func InstallerScript

func InstallerScript(config SeedConfig) ([]byte, error)

func MetaData

func MetaData(config SeedConfig) ([]byte, error)

func UserData

func UserData(config SeedConfig) ([]byte, error)

func ValidateHostname

func ValidateHostname(value string) error

func ValidateSSHPublicKey

func ValidateSSHPublicKey(value string) error

func ValidateUsername

func ValidateUsername(value string) error

Types

type SeedConfig

type SeedConfig struct {
	Hostname             string
	Username             string
	SSHPublicKey         string
	PasswordHash         string
	AllowSSHPasswordAuth bool
	NetworkConfig        string
	NodeName             string
	Port                 int
}

Jump to

Keyboard shortcuts

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