Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DevboxToFile ¶
Types ¶
type AppConfig ¶
type AppConfig struct {
StoragePath string `mapstructure:"storage_path" yaml:"storage_path"`
}
func GlobalFromFile ¶
func NewAppConfig ¶
func NewAppConfig() *AppConfig
type Config ¶
type Config struct { Commands Commands `mapstructure:"commands"` Limits Limits `mapstructure:"limits"` Options Options `mapstructure:"options"` Binds Binds `mapstructure:"binds"` Env Env `mapstructure:"env"` }
func DevboxFromFile ¶
type Env ¶
type Limits ¶
type Limits struct { CPU float64 `mapstructure:"cpu"` Mem LimitsMemory `mapstructure:"mem"` PIDs int64 `mapstructure:"pids"` }
func (*Limits) GetCPUQuota ¶
func (*Limits) GetMemoryLimits ¶
type LimitsMemory ¶
type Workspace ¶
type Workspace struct { Path string `mapstructure:"path"` IPs []string `mapstructure:"ips"` Devboxes []WorkspaceDevbox `mapstructure:"devboxes"` }
func NewWorkspace ¶
func OpenWorkspace ¶
type WorkspaceDevbox ¶
type WorkspaceDevbox struct { Name string `mapstructure:"name"` Delay int64 `mapstructure:"delay"` // defines how long to wait before starting this devbox Image string `mapstructure:"image"` // usually this would the tarball eith the latest image Config Config `mapstructure:"config"` // a Config object used to configure the workspace }
Click to show internal directories.
Click to hide internal directories.