saltstack

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BinaryURL string = "https://repo.saltproject.io/salt-singlebin/3004-1/salt-3004-1-linux-amd64.tar.gz"
	HashURL   string = "https://repo.saltproject.io/salt-singlebin/3004-1/salt-3004-1_SHA512"
	SigURL    string = "https://repo.saltproject.io/salt-singlebin/3004-1/salt-3004-1_SHA512.asc"

	UbuntuRepo string = "deb [arch=%s] https://repo.saltproject.io/py3/ubuntu/%s/%s/3004 %s main"
	DebianRepo string = "deb [arch=%s] https://repo.saltproject.io/py3/debian/%s/%s/3004 %s main"
)
View Source
const PublicKey string = `` /* 1769-byte string literal not displayed */

Variables

This section is empty.

Functions

This section is empty.

Types

type Change

type Change struct {
	New    string `yaml:"new,omitempty"`
	Old    string `yaml:"old,omitempty"`
	PID    int    `yaml:"pid,omitempty"`
	Code   int    `yaml:"retcode,omitempty"`
	Stderr string `yaml:"stderr,omitempty"`
	Stdout string `yaml:"stdout,omitempty"`
}

type Config

type Config struct {
	Path string
}

func NewConfig

func NewConfig() *Config

type Installer

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

func New

func New(config *Config) *Installer

func (*Installer) GetBinary

func (i *Installer) GetBinary() string

func (*Installer) GetMode

func (i *Installer) GetMode() Mode

func (*Installer) Run

func (i *Installer) Run(ctx context.Context) error

func (*Installer) SetMode

func (i *Installer) SetMode(mode Mode)

type LocalResults

type LocalResults struct {
	Local Results `yaml:"local"`
}

func ParseLocalResults

func ParseLocalResults(contents []byte) (res *LocalResults, err error)

type LocalResultsErrors

type LocalResultsErrors struct {
	Local []string `yaml:"local"`
}

type Mode

type Mode int
const (
	Package Mode = iota
	Binary
)

type Result

type Result struct {
	ID        string                      `yaml:"__id__"`
	RunNumber int                         `yaml:"__run_num__"`
	SLS       string                      `yaml:"__sls__"`
	Changes   map[interface{}]interface{} `yaml:"changes"`
	Comment   string                      `yaml:"comment"`
	Duration  float64                     `yaml:"duration"`
	Name      string                      `yaml:"name"`
	Result    bool                        `yaml:"result"`
	StartTime string                      `yaml:"start_time"`
	Warnings  []string                    `yaml:"warnings"`
}

type Results

type Results map[string]Result

Jump to

Keyboard shortcuts

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