remote

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2016 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cmd

type Cmd struct {
	// Using apt-get update if set to true
	AptCache bool

	// Command line to execute
	CmdLine string

	// Using sudo to execute command line
	UseSudo bool
}

Execute command line

type Conf

type Conf struct {
	loom.Config
}

Config contains ssh and other configuration data needed for all the public functions in playback

func MakeConfig

func MakeConfig(user, host string, output, abort bool) (*Conf, error)

To make the config for ssh login for instance

func (*Conf) Execute

func (c *Conf) Execute(d Cmd) (string, error)

Execute the command

type Provisioning

type Provisioning interface {
	Execute(c Cmd) (string, error)
}

The provisioning interface

Jump to

Keyboard shortcuts

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