tentacle

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2018 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommandRunner

func CommandRunner(command string) remote.Action

CommandRunner returns a new remote action definition which defines how actions are to be run on an actor's remote host.

func FileCopier

func FileCopier(
	localSourcePaths []string,
	remoteDestDir string,
	opts *CopyFileOptions,
) remote.Action

FileCopier returns a new remote action definition which defines how local files/dirs are to be copied to an actor's remote host.

Types

type CopyFileOptions

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

CopyFileOptions is a collection of additional options for how files are copied to remote hosts.

func NewCopyFileOptions

func NewCopyFileOptions(recursive bool) *CopyFileOptions

NewCopyFileOptions creates a new option struct for defining how files are to be copied. Create new options in a function instead of relying on a struct so developers are less likely to leave a newly created option unset.

Jump to

Keyboard shortcuts

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