Documentation
¶
Overview ¶
Package discovery runs standalone orchestrator discovery.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Params ¶
type Params struct {
ConfigFile string `` /* 158-byte string literal not displayed */
nodeconfig.Settings
Listen netip.AddrPort `default:"127.0.0.1:8939" descr:"Public HTTP listener"`
MetricsListen netip.AddrPort `default:"127.0.0.1:8940" descr:"Loopback metrics listener"`
Nodes []boa.Text[*url.URL] `optional:"true" descr:"Orchestrator or discovery node base URLs"`
AdvertiseNodes bool `default:"true" descr:"Advertise available discovery nodes"`
AdvertiseRunners bool `default:"true" descr:"Advertise collected runners"`
RefreshInterval time.Duration `default:"5m" descr:"Discovery inventory refresh interval"`
MaxFailedRefreshes int `default:"6" min:"0" descr:"Consecutive failed refreshes before eviction"`
Grants []string `optional:"true" descr:"Private discovery IP[:port] or CIDR grants"`
PrintConfig bool `optional:"true" boa:"noconfig,noenv" descr:"Print TOML configuration"`
}
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
NewServer configures an inventory collector without runner or payment dependencies.
Click to show internal directories.
Click to hide internal directories.