modules

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2016 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AvailableModules = map[string]CamerataModule{}
View Source
var ModulesList = []string{}

Functions

func ModuleArgsMap

func ModuleArgsMap(kvargs string) map[string]string

func Register

func Register(name string, cm CamerataModule, description string)

Types

type CamerataModule

type CamerataModule interface {
	Prepare(string, *camssh.SshConnection) error
	Setup(args *cliargs.Arguments, stdout *output.StdoutManager, stderr *output.StderrManager)
	Run() error
}

func NewModule

func NewModule(args *cliargs.Arguments, stdout *output.StdoutManager, stderr *output.StderrManager) (CamerataModule, error)

type TCamerataModule

type TCamerataModule struct {
	Host    string
	Args    *cliargs.Arguments
	Sshconn *camssh.SshConnection
	Stdout  *output.StdoutManager
	Stderr  *output.StderrManager
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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