Documentation ¶
Index ¶
- Variables
- func Command(cmd ...string) Option[Container]
- func Env(k, v string) Option[Container]
- func Forward(host, guest string) Option[*NetworkConfig]
- func GuestAddress(i string) Option[*NetworkConfig]
- func GuestMAC(mac string) Option[*NetworkConfig]
- func Image(name string) Option[Container]
- func ImageFile(path string) Option[Container]
- func Module(source []byte) Option[Spin]
- func ModuleOpen(path string) Option[Spin]
- func ModuleZip(path string, filename string) Option[Spin]
- func Mount(hostDir, wasmDir string) Option[Container]
- func Name(name string) Option[Container]
- func Networking(options ...Option[*NetworkConfig]) Option[Container]
- func New(ctx context.Context, options ...Option[Spin]) (Spin, error)
- func Runtime[arch AMD64 | RISCV64](registry Registry) Option[Spin]
- func Stderr(w io.Writer) Option[Container]
- func Stdin(r io.Reader) Option[Container]
- func Stdout(w io.Writer) Option[Container]
- func Subnet(n string) Option[*NetworkConfig]
- type AMD64
- type NetworkConfig
- type RISCV64
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 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 ModuleOpen ¶
func ModuleOpen(path string) Option[Spin]
func Networking ¶
func Networking(options ...Option[*NetworkConfig]) Option[Container]
func Subnet ¶
func Subnet(n string) Option[*NetworkConfig]
Types ¶
type NetworkConfig ¶
type NetworkConfig struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.