Documentation
¶
Index ¶
- Variables
- func Control(_, _ string, c syscall.RawConn) (err error)
- func HandleTCPConnection(ctx context.Context, client *guestagentclient.GuestAgentClient, conn net.Conn, ...)
- func HandleUDPConnection(ctx context.Context, client *guestagentclient.GuestAgentClient, ...)
- 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 HandleTCPConnection ¶
func HandleTCPConnection(ctx context.Context, client *guestagentclient.GuestAgentClient, conn net.Conn, guestAddr string)
func HandleUDPConnection ¶
func HandleUDPConnection(ctx context.Context, client *guestagentclient.GuestAgentClient, conn net.PacketConn, guestAddr string)
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) Forward ¶
func (p *ClosableListeners) Forward(ctx context.Context, client *guestagentclient.GuestAgentClient, protocol string, hostAddress string, guestAddress string, )
type Forwarder ¶
type Forwarder struct {
// contains filtered or unexported fields
}
func NewPortForwarder ¶
func NewPortForwarder(rules []limayaml.PortForward, ignoreTCP, ignoreUDP bool) *Forwarder
func (*Forwarder) OnEvent ¶
func (fw *Forwarder) OnEvent(ctx context.Context, client *guestagentclient.GuestAgentClient, ev *api.Event)
type GrpcClientRW ¶
type GrpcClientRW struct {
// contains filtered or unexported fields
}
func (*GrpcClientRW) Close ¶ added in v1.0.3
func (g *GrpcClientRW) Close() error
func (*GrpcClientRW) LocalAddr ¶ added in v1.0.3
func (g *GrpcClientRW) LocalAddr() net.Addr
func (*GrpcClientRW) RemoteAddr ¶ added in v1.0.3
func (g *GrpcClientRW) RemoteAddr() net.Addr
func (*GrpcClientRW) SetDeadline ¶ added in v1.0.3
func (g *GrpcClientRW) SetDeadline(_ time.Time) error
func (*GrpcClientRW) SetReadDeadline ¶ added in v1.0.3
func (g *GrpcClientRW) SetReadDeadline(_ time.Time) error
func (*GrpcClientRW) SetWriteDeadline ¶ added in v1.0.3
func (g *GrpcClientRW) SetWriteDeadline(_ time.Time) error
Click to show internal directories.
Click to hide internal directories.