Documentation ¶
Index ¶
- Constants
- func DNSIP(subnet net.IP) string
- func GatewayIP(subnet net.IP) string
- func Leases(name string) (string, error)
- func PIDFile(name string) (string, error)
- func Sock(name string, sockType SockType) (string, error)
- func SockWithDirectory(dir string, name string, sockType SockType) (string, error)
- func Start(ctx context.Context, name string) error
- func StartGVisorNetstack(ctx context.Context, gVisorOpts *GVisorNetstackOpts) error
- func Stop(name string) error
- func Subnet(name string) (net.IP, error)
- func SubnetCIDR(name string) (*net.IPNet, error)
- type Client
- func (c *Client) AddDNSHosts(hosts map[string]string) error
- func (c *Client) ConfigureDriver(driver *driver.BaseDriver) error
- func (c *Client) Leases() (map[string]string, error)
- func (c *Client) ResolveAndForwardSSH(ipAddr string, sshPort int) error
- func (c *Client) ResolveIPAddress(vmMacAddr string) (string, error)
- func (c *Client) UnExposeSSH(sshPort int) error
- type GVisorNetstackOpts
- type SockType
- type UDPFileConn
Constants ¶
View Source
const ( FDSock = "fd" QEMUSock = "qemu" EndpointSock = "ep" )
Variables ¶
This section is empty.
Functions ¶
func SockWithDirectory ¶
SockWithDirectory return a usernet socket based on dir, name and sockType
func Start ¶
Start starts a instance a usernet network with the given name. The name parameter must point to a valid network configuration name under <LIMA_HOME>/_config/networks.yaml with `mode: user-v2`
func StartGVisorNetstack ¶
func StartGVisorNetstack(ctx context.Context, gVisorOpts *GVisorNetstackOpts) error
func Stop ¶
Stop stops running instance a usernet network with the given name. The name parameter must point to a valid network configuration name under <LIMA_HOME>/_config/networks.yaml with `mode: user-v2`
Types ¶
type Client ¶
type Client struct { Directory string // contains filtered or unexported fields }
func NewClientByName ¶ added in v0.18.0
func (*Client) AddDNSHosts ¶ added in v0.18.0
func (*Client) ConfigureDriver ¶ added in v0.18.0
func (c *Client) ConfigureDriver(driver *driver.BaseDriver) error
func (*Client) ResolveAndForwardSSH ¶
func (*Client) ResolveIPAddress ¶ added in v0.18.0
func (*Client) UnExposeSSH ¶
type GVisorNetstackOpts ¶
type UDPFileConn ¶
Click to show internal directories.
Click to hide internal directories.