chefworker

package
v0.0.0-...-cf93416 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2021 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Worker

type Worker struct {
	Threads   int
	DB        *database.DBConnector
	Logger    logging.Logger
	Dir       string
	SSHClient *ssh.ClientConfig

	StopRequest chan struct{}
	// contains filtered or unexported fields
}

Worker describes a worker object.

func NewChefWorker

func NewChefWorker(l logging.Logger, db *database.DBConnector, directory, sshUser,
	sshKeyPath, sshKnownHostsFile string, expireWorkerLogDays int64,
	disableHostnameCheck bool) *Worker

NewChefWorker return a new Worker.

func (*Worker) CreateSSHConfig

func (w *Worker) CreateSSHConfig()

CreateSSHConfig configure ssh config for worker.

func (*Worker) Start

func (w *Worker) Start()

Start launches Worker.

func (*Worker) Stop

func (w *Worker) Stop()

Stop is a function of stopping the Worker.

Jump to

Keyboard shortcuts

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