nosinstall

package
v0.56.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Magic               = "hedgehog"
	NOSInstallerName    = "nos-install"
	AgentBinaryName     = "agent"
	AgentConfigName     = "agent-config.yaml"
	AgentKubeConfigName = "agent-kubeconfig"
	AgentUnitName       = "hedgehog-agent.service"
	AgentUnitContent    = `` /* 170-byte string literal not displayed */

)
View Source
const (
	WebhookLog    = true
	OnieURLSuffix = "/onie"
	LogURLSuffix  = "/log"
	KeySerial     = "serial"
	KeyEthAddr    = "ethaddr"
)

Variables

View Source
var AllowedBootReasons = []string{"install", "rescue"}

Functions

func Run

func Run(ctx context.Context, env Env, dryRun bool) (funcErr error)

Types

type Builder

type Builder struct {
	AgentConfig []byte
	KubeConfig  []byte
	NOSPath     string
	AgentPath   string
}

func (*Builder) Build

func (b *Builder) Build(w io.Writer) error

type CountingWriter

type CountingWriter struct {
	// contains filtered or unexported fields
}

func NewCountingWriter

func NewCountingWriter(w io.Writer) *CountingWriter

func (*CountingWriter) Bytes

func (cw *CountingWriter) Bytes() uint64

func (*CountingWriter) Write

func (cw *CountingWriter) Write(b []byte) (int, error)

type Env

type Env struct {
	ExecURL    string
	BootReason string
	Serial     string
	EthAddr    string
	Platform   string
	DiscoIP    string
}

func ReadEnv

func ReadEnv(ctx context.Context) Env

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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