network

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 15, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CtxKey

func CtxKey(s string) any

Types

type Manager

type Manager interface {
	Start(context.Context) error
	Stop(context.Context) error
	Running(ctx context.Context) (Status, error)
	Dependencies(ctx context.Context) (deps daemon.Dependency, root bool)
}

Manager handles networking between the host and the vm.

func NewManager

func NewManager(host environment.HostActions) Manager

NewManager creates a new network manager.

type Status

type Status struct {
	// Parent process
	Running bool
	// Subprocesses
	Processes []processStatus
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL