workerlib

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2020 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package workerlib encompasses the set of functions that a worker may execute, like uploading files to target machines, executing commands over SSH, WinRM, etc.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(options ...Option) script.Option

Load is a script Option that loads worker libraries into a script's execution environment.

Types

type Dependencies

type Dependencies struct {
	SSH ssh.Environment
}

Dependencies holds library dependencies that may be accessed by workerlib functions.

type Option

type Option func(*Dependencies)

An Option enables configuration of workerlib dependencies.

func WithSSH

func WithSSH(env ssh.Environment) Option

WithSSH configures the dependencies used by SSH methods.

Directories

Path Synopsis
Package ssh provides functionality to execute commands on remote targets using SSH.
Package ssh provides functionality to execute commands on remote targets using SSH.

Jump to

Keyboard shortcuts

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