Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Box ¶
type Box struct{}
func (*Box) Exec ¶
func (b *Box) Exec(command string, opts ExecOptions) (ExecResult, error)
func (*Box) ExecStream ¶ added in v0.1.3
func (b *Box) ExecStream(command string, opts ExecOptions, cb ExecCallbacks) (ExecResult, error)
type BoxOptions ¶
type BoxOptions struct {
Image string `json:"image"`
RootfsPath string `json:"rootfs_path,omitempty"`
CPUs int `json:"cpus,omitempty"`
MemoryMB int `json:"memory_mb,omitempty"`
Env map[string]string `json:"env,omitempty"`
WorkingDir string `json:"working_dir,omitempty"`
Mounts []Mount `json:"mounts,omitempty"`
NetworkMode string `json:"network_mode,omitempty"`
NetworkPolicyMode string `json:"network_policy_mode,omitempty"`
PortForwards []PortForward `json:"port_forwards,omitempty"`
MacOSNetworkEnabled bool `json:"macos_network_enabled,omitempty"`
}
type ExecCallbacks ¶ added in v0.1.3
type ExecOptions ¶
type ExecResult ¶
type PortForward ¶
type Runtime ¶
type Runtime struct{}
func NewRuntime ¶
func NewRuntime(opts *RuntimeOptions) (*Runtime, error)
type RuntimeOptions ¶
Click to show internal directories.
Click to hide internal directories.