Documentation ¶
Index ¶
- Constants
- type Conn
- func (mm *Conn) Attach(namespace string)
- func (mm *Conn) Close() error
- func (mm *Conn) Error() error
- func (mm *Conn) Pipe(pipe string) (io.Reader, io.WriteCloser)
- func (mm *Conn) Run(cmd string) chan *Response
- func (mm *Conn) RunAndPrint(cmd string, page bool)
- func (mm *Conn) Suggest(input string) []string
- type Request
- type Response
Constants ¶
View Source
const (
TOKEN_MAX = 1024 * 1024
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn struct { // Set the Pager to use for long output messages Pager minipager.Pager // contains filtered or unexported fields }
func (*Conn) RunAndPrint ¶
Run a command and print the response.
type Request ¶
Request sent to minimega -- ethier a command to run or a string to return suggestions for
type Response ¶
type Response struct { // Resp, Rendered, More are returned in response to a command Resp minicli.Responses Rendered string More bool // whether there are more responses coming // Status is set if responding with status update for command (Rendered will // contain the status message). Status bool // Suggest is returned in response to Suggest request Suggest []string `json:",omitempty"` }
Click to show internal directories.
Click to hide internal directories.