runtime

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: BSD-3-Clause Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultNetwork             *net.IPNet
	DefaultIPAddress           net.IP
	DefaultGatewayMacAddress   = "5a:94:ef:e4:0c:dd"
	DefaultContainerMacAddress net.HardwareAddr
	NetworkMTU                 = 1500
	NetworkDebug               = false
	LowPort                    = 10010
	HighPort                   = 64064
)
View Source
var NoStdin = &noStdin{}

Functions

func Command

func Command(cmd ...string) Option[Container]

func Env

func Env(k, v string) Option[Container]

func Forward

func Forward(host, guest string) Option[*NetworkConfig]

func GuestAddress

func GuestAddress(i string) Option[*NetworkConfig]

func GuestMAC

func GuestMAC(mac string) Option[*NetworkConfig]

func Image

func Image(name string) Option[Container]

func ImageFile

func ImageFile(path string) Option[Container]

func Module

func Module(source []byte) Option[Spin]

func ModuleOpen

func ModuleOpen(path string) Option[Spin]

func ModuleZip

func ModuleZip(path string, filename string) Option[Spin]

func Mount

func Mount(hostDir, wasmDir string) Option[Container]

func Name

func Name(name string) Option[Container]

func Networking

func Networking(options ...Option[*NetworkConfig]) Option[Container]

func New

func New(ctx context.Context, options ...Option[Spin]) (Spin, error)

func Runtime

func Runtime[arch AMD64 | RISCV64](registry Registry) Option[Spin]

func Stderr

func Stderr(w io.Writer) Option[Container]

func Stdin

func Stdin(r io.Reader) Option[Container]

func Stdout

func Stdout(w io.Writer) Option[Container]

func Subnet

func Subnet(n string) Option[*NetworkConfig]

Types

type AMD64

type AMD64 struct{}

type NetworkConfig

type NetworkConfig struct {
	// contains filtered or unexported fields
}

type RISCV64

type RISCV64 struct{}

Jump to

Keyboard shortcuts

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