plan

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplyResult

type ApplyResult struct {
	Host  string
	Step  string
	Error error
}

func Apply

func Apply(p *Plan, insecure bool) []ApplyResult

type Host

type Host struct {
	Name     string `yaml:"name" json:"name"`
	Role     string `yaml:"role" json:"role"`
	Host     string `yaml:"host" json:"host"`
	Port     int    `yaml:"port,omitempty" json:"port,omitempty"`
	User     string `yaml:"user,omitempty" json:"user,omitempty"`
	SSHKey   string `yaml:"ssh_key,omitempty" json:"ssh_key,omitempty"`
	Hostname string `yaml:"hostname,omitempty" json:"hostname,omitempty"`
}

type NodeConfig

type NodeConfig struct {
	IP   string `yaml:"ip"`
	User string `yaml:"user"`
	Key  string `yaml:"key,omitempty"`
	Port int    `yaml:"port"`
	Mode string `yaml:"mode,omitempty"`
	Role string `yaml:"role,omitempty"`
	Arch string `yaml:"arch,omitempty"`
}

type Options

type Options struct {
	User           string `yaml:"user" json:"user"`
	SSHKey         string `yaml:"ssh_key" json:"ssh_key"`
	SSHPort        int    `yaml:"ssh_port" json:"ssh_port"`
	K3sExtraArgs   string `yaml:"k3s_extra_args" json:"k3s_extra_args"`
	K3sChannel     string `yaml:"k3s_channel" json:"k3s_channel"`
	K3sVersion     string `yaml:"k3s_version" json:"k3s_version"`
	DisableTraefik bool   `yaml:"disable_traefik" json:"disable_traefik"`
}

type Plan

type Plan struct {
	Mode          string  `yaml:"mode" json:"mode"`
	Parallel      int     `yaml:"parallel" json:"parallel"`
	ServerOptions Options `yaml:"server_options" json:"server_options"`
	AgentOptions  Options `yaml:"agent_options" json:"agent_options"`
	Hosts         []Host  `yaml:"hosts" json:"hosts"`
}

func ParseFile

func ParseFile(path string) (*Plan, error)

func (*Plan) Summary

func (p *Plan) Summary() string

func (*Plan) Validate

func (p *Plan) Validate() error

type RootConfig

type RootConfig struct {
	Nodes []NodeConfig `yaml:"nodes"`
}

Jump to

Keyboard shortcuts

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