Documentation
¶
Index ¶
- Variables
- func Control(_, _ string, c syscall.RawConn) (err error)
- func DialContextToGRPCTunnel(client *guestagentclient.GuestAgentClient) func(ctx context.Context, network, addr string) (net.Conn, error)
- func HandleTCPConnection(_ context.Context, ...)
- func HandleUDPConnection(ctx context.Context, ...)
- func Listen(ctx context.Context, listenConfig net.ListenConfig, hostAddress string) (net.Listener, error)
- func ListenPacket(ctx context.Context, listenConfig net.ListenConfig, hostAddress string) (net.PacketConn, error)
- type ClosableListeners
- type Forwarder
- type GrpcClientRW
- func (g *GrpcClientRW) Close() error
- func (g *GrpcClientRW) LocalAddr() net.Addr
- func (g *GrpcClientRW) Read(p []byte) (n int, err error)
- func (g *GrpcClientRW) RemoteAddr() net.Addr
- func (g *GrpcClientRW) SetDeadline(_ time.Time) error
- func (g *GrpcClientRW) SetReadDeadline(_ time.Time) error
- func (g *GrpcClientRW) SetWriteDeadline(_ time.Time) error
- func (g *GrpcClientRW) Write(p []byte) (n int, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var IPv4loopback1 = limayaml.IPv4loopback1
Functions ¶
func DialContextToGRPCTunnel ¶
func DialContextToGRPCTunnel(client *guestagentclient.GuestAgentClient) func(ctx context.Context, network, addr string) (net.Conn, error)
func HandleTCPConnection ¶
func HandleUDPConnection ¶
func ListenPacket ¶
func ListenPacket(ctx context.Context, listenConfig net.ListenConfig, hostAddress string) (net.PacketConn, error)
Types ¶
type ClosableListeners ¶
type ClosableListeners struct {
// contains filtered or unexported fields
}
func NewClosableListener ¶
func NewClosableListener() *ClosableListeners
func (*ClosableListeners) Close ¶
func (p *ClosableListeners) Close() error
type Forwarder ¶
type Forwarder struct {
// contains filtered or unexported fields
}
func NewPortForwarder ¶
func NewPortForwarder(rules []limatype.PortForward, ignoreTCP, ignoreUDP bool) *Forwarder
type GrpcClientRW ¶
type GrpcClientRW struct {
// contains filtered or unexported fields
}
func (*GrpcClientRW) Close ¶
func (g *GrpcClientRW) Close() error
func (*GrpcClientRW) LocalAddr ¶
func (g *GrpcClientRW) LocalAddr() net.Addr
func (*GrpcClientRW) RemoteAddr ¶
func (g *GrpcClientRW) RemoteAddr() net.Addr
func (*GrpcClientRW) SetDeadline ¶
func (g *GrpcClientRW) SetDeadline(_ time.Time) error
func (*GrpcClientRW) SetReadDeadline ¶
func (g *GrpcClientRW) SetReadDeadline(_ time.Time) error
func (*GrpcClientRW) SetWriteDeadline ¶
func (g *GrpcClientRW) SetWriteDeadline(_ time.Time) error
Click to show internal directories.
Click to hide internal directories.