Discover Packages
github.com/crosbymichael/boss
cmd
package
Version:
v0.0.0-...-d615174
Opens a new window with list of versions in this module.
Published: Feb 23, 2019
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Container struct {
ConfigVersion string `toml:"config_version"`
ID string `toml:"id"`
Image string `toml:"image"`
Resources *Resources `toml:"resources"`
GPUs *GPUs `toml:"gpus"`
Mounts []Mount `toml:"mounts"`
Env []string `toml:"env"`
Args []string `toml:"args"`
UID *int `toml:"uid"`
GID *int `toml:"gid"`
Network string `toml:"network"`
Services map[string ]Service `toml:"services"`
Configs map[string ]File `toml:"configs"`
Readonly bool `toml:"readonly"`
Capabilities []string `toml:"caps"`
Volumes map[string ]Volume `toml:"volumes"`
}
type File struct {
Path string `toml:"path"`
Source string `toml:"source"`
Content string `toml:"content"`
Signal string `toml:"signal"`
}
type GPUs struct {
Devices []int64 `toml:"devices"`
Capbilities []string `toml:"capabilities"`
}
type Mount struct {
Type string `toml:"type"`
Source string `toml:"source"`
Destination string `toml:"destination"`
Options []string `toml:"options"`
}
type Resources struct {
CPU float64 `toml:"cpu"`
Memory int64 `toml:"memory"`
Score int64 `toml:"score"`
NoFile uint64 `toml:"no_file"`
}
type Service struct {
Port int64 `toml:"port"`
Labels []string `toml:"labels"`
URL string `toml:"url"`
CheckType CheckType `toml:"check_type"`
CheckInterval int64 `toml:"check_interval"`
CheckTimeout int64 `toml:"check_timeout"`
CheckMethod string `toml:"check_method"`
}
type Volume struct {
Destination string `toml:"destination"`
RW bool `toml:"rw"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.