packaging

package
v0.4.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2021 License: BSD-3-Clause Imports: 18 Imported by: 0

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 RunUninstall

func RunUninstall() int

RunUninstall is the main uninstall 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 AutoupdateConfig struct {
	BinaryPath    string
	BinaryVersion string
	DistBaseURL   string
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL