Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterName(id string) string
- type Agent
- type Buildkit
- type CNI
- type Config
- type ConfigStore
- type Consul
- type Containerd
- type Criu
- type DHCP
- type DNS
- type IPAM
- type Join
- type MOTD
- type Mkdir
- type NodeExporter
- type RegisterService
- type SSH
- type Step
- type Systemd
- type Template
- type Timezone
Constants ¶
View Source
const (
Path = "/etc/boss/boss.toml"
)
Variables ¶
View Source
var ErrConfigStoreNotSupported = errors.New("config store not enabled, you need consul")
Functions ¶
func RegisterName ¶
Types ¶
type Agent ¶
type Agent struct {
PlainRemotes []string `toml:"plain_remotes"`
VolumeRoot string `toml:"volume_root"`
}
type CNI ¶
type CNI struct {
Image string `toml:"image" json:"-"`
Version string `toml:"-" json:"cniVersion,omitempty"`
NetworkName string `toml:"name" json:"name"`
Type string `toml:"type" json:"type"`
Master string `toml:"master" json:"master,omitempty"`
IPAM IPAM `toml:"ipam" json:"ipam"`
Bridge string `toml:"bridge" json:"bridge,omitempty"`
BridgeAddress string `toml:"bridge_address" json:"-"`
}
type Config ¶
type Config struct {
ID string `toml:"id"`
Iface string `toml:"iface"`
Domain string `toml:"domain"`
Buildkit *Buildkit `toml:"buildkit"`
CNI *CNI `toml:"cni"`
Consul *Consul `toml:"consul"`
NodeExporter *NodeExporter `toml:"nodeexporter"`
Nameservers []string `toml:"nameservers"`
Timezone string `toml:"timezone"`
MOTD *MOTD `toml:"motd"`
SSH *SSH `toml:"ssh"`
Agent Agent `toml:"agent"`
Containerd Containerd `toml:"containerd"`
Criu *Criu `toml:"criu"`
}
func (*Config) GetNameservers ¶
func (*Config) GetNetwork ¶
GetNetwork returns a network for the givin name
func (*Config) GetRegister ¶
func (*Config) Store ¶
func (c *Config) Store() (ConfigStore, error)
type ConfigStore ¶
type Consul ¶
type Consul struct {
Image string `toml:"image"`
Join []string `toml:"join"`
NoServer bool `toml:"no_server"`
// contains filtered or unexported fields
}
type Containerd ¶
type Containerd struct {
}
func (*Containerd) Name ¶
func (s *Containerd) Name() string
func (*Containerd) Remove ¶
func (s *Containerd) Remove(ctx context.Context, client *containerd.Client, clix *cli.Context) error
func (*Containerd) Run ¶
func (s *Containerd) Run(ctx context.Context, client *containerd.Client, clix *cli.Context) error
type NodeExporter ¶
type NodeExporter struct {
Image string `toml:"image"`
}
func (*NodeExporter) Name ¶
func (s *NodeExporter) Name() string
func (*NodeExporter) Remove ¶
func (s *NodeExporter) Remove(ctx context.Context, client *containerd.Client, clix *cli.Context) error
func (*NodeExporter) Run ¶
func (s *NodeExporter) Run(ctx context.Context, client *containerd.Client, clix *cli.Context) error
type RegisterService ¶
type RegisterService struct {
ID string
Port int
Tags []string
Config *Config
Check *v1.HealthCheck
}
func (*RegisterService) Name ¶
func (s *RegisterService) Name() string
func (*RegisterService) Remove ¶
func (s *RegisterService) Remove(ctx context.Context, client *containerd.Client, clix *cli.Context) error
func (*RegisterService) Run ¶
func (s *RegisterService) Run(ctx context.Context, client *containerd.Client, clix *cli.Context) error
type Template ¶
Click to show internal directories.
Click to hide internal directories.