Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunBootstrap ¶
func RunBootstrap(config *BootstrapConfig) int
RunBootstrap is the main bootstrap entry point
func RunUpdate ¶
func RunUpdate(c *AutoupdateConfig) error
RunUpdate is the main entry point for updating agent
func StartBackgroundAutoUpdate ¶
func StartBackgroundAutoUpdate(ctx context.Context, c *AutoupdateConfig)
StartBackgroundAutoUpdate is the background process which updates agent periodically
Types ¶
type AutoupdateConfig ¶
type BootstrapConfig ¶
type BootstrapConfig struct { ExecutableName string AutoStart bool RunAsUser string SendMetricsURL string AutoUpdateURL string APIKey string DefaultPostgresPassword string DefaultPgbouncerPassword string // contains filtered or unexported fields }
func (*BootstrapConfig) Validate ¶
func (c *BootstrapConfig) Validate() error
Click to show internal directories.
Click to hide internal directories.