Documentation ¶
Index ¶
- func DebugLines(reader io.Reader)
- func SetLogLevel(level logging.Level)
- type Args
- type Facts
- type Remote
- func (r *Remote) AfterAll() error
- func (r *Remote) BeforeAll(tasks configuration.TaskCollection) error
- func (r *Remote) CleanUp() error
- func (r *Remote) Close()
- func (r *Remote) Connect() error
- func (r *Remote) Execute(t *configuration.Task) error
- func (r *Remote) GatherFacts() (Facts, error)
- func (r *Remote) Prepare(task *configuration.Task) error
- func (r *Remote) Run(t *configuration.Task) error
- type Runner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DebugLines ¶
func SetLogLevel ¶
SetLogLevel sets the log level for the core logger
Types ¶
type Args ¶
type Args struct { Environment []string Args []string Options configuration.OptionCollection }
Args describes the args for the remote call.
type Remote ¶
type Remote struct { Host *configuration.Host Config *configuration.Configuration Facts Facts Client *ssh.Client SftpClient *sftp.Client // contains filtered or unexported fields }
Remote describes a runner which runs task on a remote system via SSH.
func NewRemoteRunner ¶
func NewRemoteRunner(host *configuration.Host, config *configuration.Configuration) *Remote
NewRemoteRunner creates a new runner which runs tasks on a remote system.
func (*Remote) BeforeAll ¶
func (r *Remote) BeforeAll(tasks configuration.TaskCollection) error
func (*Remote) Close ¶
func (r *Remote) Close()
Close closes the SSH connection to the remote system
func (*Remote) Execute ¶
func (r *Remote) Execute(t *configuration.Task) error
Execute executes the task on the remote system via the runner.
func (*Remote) GatherFacts ¶
RunCommand runs an abritrary command on the remote system.
Click to show internal directories.
Click to hide internal directories.