deploy

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDeployers

func NewDeployers(
	logger *zap.Logger, templator *template.Templator, localRepoPath string,
	hosts []config.Host,
) (map[string]*Deployer, error)

Types

type Deployer

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

func (Deployer) Deploy

func (d Deployer) Deploy(ctx context.Context, host string, targets []config.DeployTarget) error

func (Deployer) RunCommand

func (d Deployer) RunCommand(ctx context.Context, command string) error

type NewDeployersFunc

type NewDeployersFunc func(*zap.Logger, *template.Templator, string, []config.Host) (map[string]*Deployer, error)

Jump to

Keyboard shortcuts

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