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.
Click to show internal directories.
Click to hide internal directories.