ignition

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(templatePath, tunnelToken, tunnelID, hostname, cfDomain string) (string, error)

Build substitutes variables into the Butane template, compiles it via butane, writes the Ignition JSON to a temp file, and returns its path. The caller is responsible for removing the temp file when done.

func Deploy

func Deploy(ignPath, machineName string) error

Deploy applies the Ignition config using the legacy podman.SSH call. Deprecated: Use DeployWithSSH for provider-agnostic deployments.

func DeployWithSSH added in v0.3.0

func DeployWithSSH(ignPath, machineName string, sshFn SSHFunc) error

DeployWithSSH applies the Ignition config by executing commands on the VM through the provided SSH function. This supports any virtualization backend.

func Validate

func Validate(templatePath string) error

Validate checks that the template compiles cleanly with dummy values. Useful for CI.

Types

type SSHFunc added in v0.3.0

type SSHFunc func(machineName, command string) (string, error)

SSHFunc is a function that executes a command on a remote machine via SSH.

Jump to

Keyboard shortcuts

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