bootstrap

package
v0.6.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunBootstrap

func RunBootstrap(config Config) int

RunBootstrap is the main bootstrap entry point

func RunUninstall

func RunUninstall() int

RunUninstall is the main uninstall entry point

Types

type Config

type Config struct {
	// File directories and paths
	ExecutableName string // Name of the executable
	Prefix         string // Prefix path where pgscv should be installed
	Installdir     string // Root directory where pgscv should be installed
	Bindir         string // Directory for executables
	ConfigFile     string // Path and filename of config file
	SystemdUnit    string // Path and name of systemd unit file
	// Settings of configuration file
	AutoStart                bool   // should be service auto-started by systemd?
	RunAsUser                string // run service using this user
	SendMetricsURL           string // URL of remote metric service
	AutoUpdateEnv            string // CLI input flag for control self-update setting
	AutoUpdate               string // should be service do self-update?
	APIKey                   string // API key of remote metric service
	DefaultPostgresPassword  string // default password used for connecting to Postgres services
	DefaultPgbouncerPassword string // default password used for connecting to Pgbouncer services
}

Config describes bootstrap configuration

func (*Config) Validate

func (c *Config) Validate() error

Validate checks configuration and set default values.

Jump to

Keyboard shortcuts

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