Documentation ¶
Index ¶
- Constants
- Variables
- type BuildTunnelArgs
- type BuildTunnelReply
- type Client
- func (c *Client) BuildTunnel(dst net.IP, tunnel *Tunnel) (net.IP, *Tunnel, error)
- func (c *Client) Close() error
- func (c *Client) CreateSegment(id string, init []SegmentCommand, trig []SegmentCommand) (string, error)
- func (c *Client) CreateTunnel(host string, udp bool) (net.IP, net.IP, error)
- func (c *Client) DeleteSegment(id string) error
- func (c *Client) DeleteTunnel(host string) error
- func (c *Client) DestroyTunnel(dst net.IP) (net.IP, error)
- func (c *Client) Echo(value []byte, host string) ([]byte, error)
- func (c *Client) GetSrcIP(dst net.IP) (net.IP, error)
- type CreateSegmentArgs
- type CreateSegmentReply
- type CreateTunnelArgs
- type CreateTunnelReply
- type DeleteSegmentArgs
- type DeleteSegmentReply
- type DeleteTunnelArgs
- type DeleteTunnelReply
- type DestroyTunnelArgs
- type DestroyTunnelReply
- type EchoArgs
- type EchoReply
- type GetSrcIPArgs
- type GetSrcIPReply
- type SegmentCommand
- type Tunnel
Constants ¶
Variables ¶
View Source
var CommandName = []string{ NONE: "none", DOCKER_NS: "docker-ns", DOCKER_RUN: "docker-run", CHILD: "child", CHAIN: "chain", REMOTE: "remote", TUNNEL: "tunnel", URL: "url", }
Functions ¶
This section is empty.
Types ¶
type BuildTunnelArgs ¶
type BuildTunnelReply ¶
type Client ¶
func (*Client) BuildTunnel ¶
func (*Client) CreateSegment ¶
func (c *Client) CreateSegment(id string, init []SegmentCommand, trig []SegmentCommand) (string, error)
func (*Client) CreateTunnel ¶
func (*Client) DeleteSegment ¶
func (*Client) DeleteTunnel ¶
type CreateSegmentArgs ¶
type CreateSegmentArgs struct { Id string Init []SegmentCommand Trig []SegmentCommand }
type CreateSegmentReply ¶
type CreateSegmentReply struct {
Url string
}
type CreateTunnelArgs ¶
type DeleteSegmentArgs ¶
type DeleteSegmentArgs struct {
Id string
}
type DeleteSegmentReply ¶
type DeleteSegmentReply struct { }
type DeleteTunnelArgs ¶
type DeleteTunnelArgs struct {
Host string
}
type DeleteTunnelReply ¶
type DeleteTunnelReply struct { }
type DestroyTunnelArgs ¶
type DestroyTunnelReply ¶
DestroyTunnel has no reply value
type GetSrcIPArgs ¶
type GetSrcIPReply ¶
type SegmentCommand ¶
type SegmentCommand struct { Type int Tail bool Arg string ChildInit []SegmentCommand ChildTrig []SegmentCommand }
func (*SegmentCommand) AddInit ¶
func (s *SegmentCommand) AddInit(c *SegmentCommand)
func (*SegmentCommand) AddTrig ¶
func (s *SegmentCommand) AddTrig(c *SegmentCommand)
Click to show internal directories.
Click to hide internal directories.