recipes

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cmd added in v0.2.0

type Cmd struct {
	// contains filtered or unexported fields
}

func (*Cmd) Run added in v0.2.0

func (c *Cmd) Run(cmds []commands.Command)

func (*Cmd) Upload added in v0.2.0

func (c *Cmd) Upload(artfs []artifacts.Artifact)

type Recipe added in v0.2.0

type Recipe struct {
	Name   string
	OfType string
	Match  *servers.Match
	KV     map[string]string
	// contains filtered or unexported fields
}

func NewRecipe added in v0.2.0

func NewRecipe(log *logger.CLILogger, tpl *template.Template) *Recipe

func (*Recipe) AddArtifact added in v0.2.0

func (r *Recipe) AddArtifact(artf artifacts.Artifact)

func (*Recipe) AddCommand added in v0.2.0

func (r *Recipe) AddCommand(cmd commands.Command)

func (*Recipe) AddServers added in v0.2.0

func (r *Recipe) AddServers(srvs []servers.Server)

func (*Recipe) Display added in v0.2.0

func (r *Recipe) Display(query string)

func (*Recipe) Execute added in v0.2.0

func (r *Recipe) Execute(srvs []servers.Server, kv *kv.KV, maxParallelProcesses int)

func (*Recipe) PrepareArtifacts added in v0.2.0

func (r *Recipe) PrepareArtifacts(artfs []artifacts.Artifact, dryrun bool)

type SSH

type SSH struct {
	// contains filtered or unexported fields
}

func (*SSH) Close

func (ss *SSH) Close()

func (*SSH) Connect

func (ss *SSH) Connect(s *servers.Server) error

func (*SSH) Run

func (ss *SSH) Run(commands []string)

func (*SSH) Upload

func (ss *SSH) Upload(artfs []artifacts.Artifact)

type SSHJob

type SSHJob struct {
	Server servers.Server
	Recipe *Recipe
}

type SSHWorkerGroup added in v0.2.0

type SSHWorkerGroup struct {
	// contains filtered or unexported fields
}

func NewSSHWorkerGroup

func NewSSHWorkerGroup(name string, log *logger.CLILogger, heartbeat time.Duration) *SSHWorkerGroup

NewWorkerGroup ...

func (*SSHWorkerGroup) ExecRecipeOnServer added in v0.2.0

func (w *SSHWorkerGroup) ExecRecipeOnServer(s servers.Server, recipe *Recipe)

func (*SSHWorkerGroup) Name added in v0.2.0

func (w *SSHWorkerGroup) Name(id string) string

func (*SSHWorkerGroup) Process added in v0.2.0

func (w *SSHWorkerGroup) Process(ctx context.Context, workerCtx *pool.WorkerContext, id string)

Jump to

Keyboard shortcuts

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