package rcli
import "github.com/dotcloud/docker/rcli"
Index ¶
- Variables
- func ListenAndServe(proto, addr string, service Service) error
- func LocalCall(service Service, stdin io.ReadCloser, stdout DockerConn, args ...string) error
- func RestoreTerminal(state *term.State)
- func Serve(conn DockerConn, service Service) error
- func SetRawTerminal() (*term.State, error)
- func Subcmd(output io.Writer, name, signature, description string) *flag.FlagSet
- type Cmd
- type CmdMethod
- type DockerConn
- type DockerConnOptions
- type DockerLocalConn
- func NewDockerLocalConn(w io.WriteCloser) *DockerLocalConn
- func (c *DockerLocalConn) Close() error
- func (c *DockerLocalConn) CloseRead() error
- func (c *DockerLocalConn) CloseWrite() error
- func (c *DockerLocalConn) Flush() error
- func (c *DockerLocalConn) GetOptions() *DockerConnOptions
- func (c *DockerLocalConn) Read(b []byte) (int, error)
- func (c *DockerLocalConn) SetOptionRawTerminal()
- func (c *DockerLocalConn) Write(b []byte) (int, error)
- type DockerTCPConn
- func NewDockerTCPConn(conn *net.TCPConn, client bool) *DockerTCPConn
- func (c *DockerTCPConn) Close() error
- func (c *DockerTCPConn) CloseRead() error
- func (c *DockerTCPConn) CloseWrite() error
- func (c *DockerTCPConn) Flush() error
- func (c *DockerTCPConn) GetOptions() *DockerConnOptions
- func (c *DockerTCPConn) Read(b []byte) (int, error)
- func (c *DockerTCPConn) SetOptionRawTerminal()
- func (c *DockerTCPConn) Write(b []byte) (int, error)
- type Service
Variables ¶
Note: the globals are here to avoid import cycle FIXME: Handle debug levels mode?
Functions ¶
func ListenAndServe ¶
Listen on `addr`, using protocol `proto`, for incoming rcli calls, and pass them to `service`.
func LocalCall ¶
func LocalCall(service Service, stdin io.ReadCloser, stdout DockerConn, args ...string) error
func RestoreTerminal ¶
func Serve ¶
func Serve(conn DockerConn, service Service) error
Parse an rcli call on a new connection, and pass it to `service` if it is valid.
func SetRawTerminal ¶
FIXME: move these function to utils.go (in rcli to avoid import loop)
func Subcmd ¶
Types ¶
type Cmd ¶
type CmdMethod ¶
type DockerConn ¶
type DockerConn interface { io.ReadWriteCloser CloseWrite() error CloseRead() error GetOptions() *DockerConnOptions SetOptionRawTerminal() Flush() error }
func Call ¶
func Call(proto, addr string, args ...string) (DockerConn, error)
Connect to a remote endpoint using protocol `proto` and address `addr`, issue a single call, and return the result. `proto` may be "tcp", "unix", etc. See the `net` package for available protocols.
type DockerConnOptions ¶
type DockerConnOptions struct { RawTerminal bool }
type DockerLocalConn ¶
type DockerLocalConn struct {
// contains filtered or unexported fields
}
func NewDockerLocalConn ¶
func NewDockerLocalConn(w io.WriteCloser) *DockerLocalConn
func (*DockerLocalConn) Close ¶
func (c *DockerLocalConn) Close() error
func (*DockerLocalConn) CloseRead ¶
func (c *DockerLocalConn) CloseRead() error
func (*DockerLocalConn) CloseWrite ¶
func (c *DockerLocalConn) CloseWrite() error
func (*DockerLocalConn) Flush ¶
func (c *DockerLocalConn) Flush() error
func (*DockerLocalConn) GetOptions ¶
func (c *DockerLocalConn) GetOptions() *DockerConnOptions
func (*DockerLocalConn) Read ¶
func (c *DockerLocalConn) Read(b []byte) (int, error)
func (*DockerLocalConn) SetOptionRawTerminal ¶
func (c *DockerLocalConn) SetOptionRawTerminal()
func (*DockerLocalConn) Write ¶
func (c *DockerLocalConn) Write(b []byte) (int, error)
type DockerTCPConn ¶
type DockerTCPConn struct {
// contains filtered or unexported fields
}
func NewDockerTCPConn ¶
func NewDockerTCPConn(conn *net.TCPConn, client bool) *DockerTCPConn
func (*DockerTCPConn) Close ¶
func (c *DockerTCPConn) Close() error
func (*DockerTCPConn) CloseRead ¶
func (c *DockerTCPConn) CloseRead() error
func (*DockerTCPConn) CloseWrite ¶
func (c *DockerTCPConn) CloseWrite() error
func (*DockerTCPConn) Flush ¶
func (c *DockerTCPConn) Flush() error
func (*DockerTCPConn) GetOptions ¶
func (c *DockerTCPConn) GetOptions() *DockerConnOptions
func (*DockerTCPConn) Read ¶
func (c *DockerTCPConn) Read(b []byte) (int, error)
func (*DockerTCPConn) SetOptionRawTerminal ¶
func (c *DockerTCPConn) SetOptionRawTerminal()
func (*DockerTCPConn) Write ¶
func (c *DockerTCPConn) Write(b []byte) (int, error)
type Service ¶
Source Files ¶
- Version
- v0.1.6
- Published
- Apr 18, 2013
- Platform
- linux/amd64
- Imports
- 14 packages
- Last checked
- now –
Tools for package owners.