package vpnkit
import "github.com/moby/vpnkit/go/pkg/vpnkit"
Package vpnkit allows a running VPNKit service to be reconfigured.
Features
- expose/unexpose TCP and UDP ports
Index ¶
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
Connection represents an open control connection to vpnkit
func NewConnection ¶
func NewConnection(ctx context.Context, path string) (*Connection, error)
NewConnection connects to a vpnkit Unix domain socket on the given path and returns the connection
type Port ¶
type Port struct {
// contains filtered or unexported fields
}
Port represents a UDP or TCP exposed port
func NewPort ¶
func NewPort(connection *Connection, proto string, outIP net.IP, outPort int16, inIP net.IP, inPort int16) *Port
func (*Port) Expose ¶
Expose asks vpnkit to expose the port
func (*Port) Unexpose ¶
Unexpose asks vpnkit to hide the port again
Source Files ¶
- Version
- v0.1.0
- Published
- Aug 17, 2017
- Platform
- js/wasm
- Imports
- 8 packages
- Last checked
- 1 day ago –
Tools for package owners.