Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CmdDefaults = Command{Timeout: 100}
View Source
var CmdDefaults2 = Command2{Command: CmdDefaults, OutType: "both"}
Functions ¶
func DumpOutput ¶
Types ¶
type Client ¶
type Client interface { ListServers(timeout int) chan *ServerInfo RequestOutput(dest string, otype common.OutputType, resolve bool, timeout int) (outPipe *os.File, err error) RequestCommand(dest string, otype common.OutputType, buffered, resolve bool, timeout int) (inPipe *os.File, outPipe *os.File, err error) SendCommand(dest string, otype common.OutputType, command string, resolve bool, timeout int) (outPipe *os.File, err error) Close() error }
func NewDBusFromDial ¶
func NewDBusFromSession ¶
func NewDBusFromSystem ¶
type Command ¶
type Command struct {
Timeout int `short:"t" long:"timeout" description:"timeout for listing available servers"`
}
type Command2 ¶
type Command2 struct { Command OutType string `short:"o" long:"output" description:"the output {type} when connecting to a server (none, out, err, both)"` Direct bool `short:"n" long:"direct" description:"Do not attempt to resolve service names"` }
func (*Command2) GetOutType ¶
func (m *Command2) GetOutType() common.OutputType
type ServerInfo ¶
Click to show internal directories.
Click to hide internal directories.