Documentation ¶
Index ¶
- Constants
- Variables
- func CurrentImage() (string, error)
- func Install(sourceImgURL string, dir ...string) error
- func InteractiveInstall(debug, spawnShell bool, sourceImgURL string) error
- func ListAllReleases(includePrereleases bool) ([]string, error)
- func ListNewerReleases(includePrereleases bool) ([]string, error)
- func ManualInstall(c, sourceImgURL, device string, reboot, poweroff, strictValidations bool) error
- func Notify(event string, dirs []string) error
- func Recovery() error
- func Reset(reboot, unattended, resetOem bool, dir ...string) error
- func Run(opts ...Option) error
- func RunInstall(c *config.Config) error
- func Upgrade(source string, force, strictValidations bool, dirs []string, ...) error
- type BrandingText
- type Config
- type ExtraConfigReset
- type ExtraConfigUpgrade
- type Option
- type Options
- type WebUI
Constants ¶
View Source
const ( KiB MiB GiB TiB )
Variables ¶
View Source
var DefaultBanner = []byte{}/* 12853 elements not displayed */
Functions ¶
func CurrentImage ¶
func InteractiveInstall ¶
func ListAllReleases ¶ added in v2.6.3
func ListNewerReleases ¶ added in v2.6.3
func ManualInstall ¶
func RunInstall ¶
Types ¶
type BrandingText ¶
type Config ¶
type Config struct { Fast bool `yaml:"fast,omitempty"` WebUI WebUI `yaml:"webui"` Branding BrandingText `yaml:"branding"` }
func LoadConfig ¶
type ExtraConfigReset ¶ added in v2.7.8
type ExtraConfigReset struct { Reset struct { ResetOem bool `json:"reset-oem,omitempty"` ResetPersistent bool `json:"reset-persistent,omitempty"` Reboot bool `json:"reboot,omitempty"` } `json:"reset"` }
ExtraConfigReset is the struct that holds the reset options that come from flags and events
type ExtraConfigUpgrade ¶ added in v2.7.8
type ExtraConfigUpgrade struct { Upgrade struct { Entry string `json:"entry,omitempty"` RecoverySystem struct { URI string `json:"uri,omitempty"` } `json:"recovery-system,omitempty"` System struct { URI string `json:"uri,omitempty"` } `json:"system,omitempty"` } `json:"upgrade,omitempty"` }
ExtraConfigUpgrade is the struct that holds the upgrade options that come from flags and events
type Option ¶
Option is a generic option for the Agent.
ForceAgent forces the agent to run.
RestartAgent makes the agent restart on error.
func WithAPI ¶
WithAPI sets the API address used to talk to EdgeVPN and co-ordinate node bootstrapping.
func WithDirectory ¶
WithDirectory sets the Agent config directories.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.