commands

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2016 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "passage",
	Short: "Passage - SSH tunnels on steroids",
}

Functions

func Execute

func Execute()

Types

type Addr

type Addr struct {
	core.Addr
}

func (*Addr) Set

func (a *Addr) Set(value string) error

func (Addr) String

func (a Addr) String() string

func (*Addr) Type

func (a *Addr) Type() string

type GetCommand

type GetCommand struct {
	RPCAddr string
}

func NewGetCommand

func NewGetCommand() *GetCommand

func (*GetCommand) Command

func (c *GetCommand) Command() *cobra.Command

func (*GetCommand) Execute

func (l *GetCommand) Execute(cmd *cobra.Command, args []string) error

type ListenCommand

type ListenCommand struct {
	User   string
	Addr   Addr
	Server ServerAddr
	Remote Remote
}

func NewListenCommand

func NewListenCommand() *ListenCommand

func (*ListenCommand) Command

func (c *ListenCommand) Command() *cobra.Command

func (*ListenCommand) Execute

func (l *ListenCommand) Execute(cmd *cobra.Command, args []string) error

type Remote

type Remote struct {
	core.Remote
}

func (*Remote) Set

func (r *Remote) Set(value string) error

func (*Remote) Type

func (r *Remote) Type() string

type ServerAddr

type ServerAddr struct {
	Addr
}

func (*ServerAddr) Set

func (a *ServerAddr) Set(value string) error

func (*ServerAddr) Type

func (a *ServerAddr) Type() string

type ServerCommand

type ServerCommand struct {
	LogLevel   string
	LogFile    string
	ConfigFile string
	Config     *server.Config
	Server     *server.Server
	RPCAddr    string
	RPCServer  *server.RPCServer
	// contains filtered or unexported fields
}

func NewServerCommand

func NewServerCommand() *ServerCommand

func (*ServerCommand) Command

func (c *ServerCommand) Command() *cobra.Command

func (*ServerCommand) Execute

func (c *ServerCommand) Execute(cmd *cobra.Command, args []string) error

Jump to

Keyboard shortcuts

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