nexus

package
v0.0.0-...-e56e09a Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2017 License: Apache-2.0 Imports: 7 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandRunner

type CommandRunner interface {
	Run(string, string, time.Duration) (string, error)
}

type CommandRunnerBody

type CommandRunnerBody struct {
	JsonRpc string `json:"jsonrpc"`
	Method  string `json:"method"`
	Params  Params `json:"params"`
	ID      int    `json:"id"`
}

type CommandRunnerResponseBody

type CommandRunnerResponseBody struct {
	JsonRpc string `json:"jsonrpc"`
	Result  Result `json:"result"`
	ID      int    `json:"id"`
}

type CopyCommand

type CopyCommand struct {
	Src string
	Dst string
}

type Params

type Params struct {
	Command string `json:"cmd"`
	Version int    `json:"version"`
}

type Result

type Result struct {
	Message string      `json:"msg"`
	Body    interface{} `json:"body"`
}

type Runner

type Runner struct {
	IP       string `json:"ip"`
	Username string `json:"username"`
	Password string `json:"password"`
}

func (*Runner) Run

func (nr *Runner) Run(command string, method string, timeout time.Duration) (string, error)

Jump to

Keyboard shortcuts

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