installer

package
v0.14.20 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadFile

func DownloadFile(url string, dest string) error

func Exists

func Exists(name string) (bool, error)

Types

type Config

type Config struct {
	Mode                 Mode
	CachePath            string
	NoRootCheck          bool
	SaltStackUser        string
	SaltStackState       string
	SaltStackTest        bool
	SaltStackLogLevel    string
	SaltStackFileRoot    string
	SaltStackInstallMode saltstack.Mode
	SaltStackPillars     map[string]string
}

type Installer

type Installer struct {
	Mode Mode
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, config *Config) *Installer

func (*Installer) Run

func (i *Installer) Run() (err error)

type Mode

type Mode int
const (
	LocalInstallMode Mode = iota
	LocalUpgradeMode
	LocalRemoveMode
	RemoteInstallMode
	RemoteUpgradeMode
	RemoteRemoveMode
)

Jump to

Keyboard shortcuts

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