saltstack

package
v0.14.27 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Version string = "3005.1" // renovate: datasource=github-releases depName=saltstack/salt

	BinaryURL  string = `https://repo.saltproject.io/salt/singlebin/{{ .Version }}-1/salt-{{ .Version }}-1-linux-{{ .OS.Architecture }}.tar.gz`
	HashURL    string = `https://repo.saltproject.io/salt/singlebin/{{ .Version }}-1/salt-{{ .Version }}-1_SHA512`
	SigURL     string = `https://repo.saltproject.io/salt/singlebin/{{ .Version }}-1/salt-{{ .Version }}-1_SHA512.asc`
	RepoKeyURL string = "" /* 139-byte string literal not displayed */
	APTRepo    string = "" /* 227-byte string literal not displayed */
)
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 Meta added in v0.10.0

type Meta struct {
	MajorVersion string
	MinorVersion string
	Version      string
	OS           *sysinfo.OS
}

func (*Meta) Render added in v0.10.0

func (m *Meta) Render(val string) (string, error)

type Mode

type Mode int
const (
	Package Mode = iota
	Binary
	OneDir
)

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