core

package
v0.9.12 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	//configuration for upload to/download from Swift
	Container        *schwift.Container
	SegmentContainer *schwift.Container
	ObjectNamePrefix string
	//backup schedule
	Interval time.Duration
	//configuration for connection to Postgres
	PgHostname string
	PgUsername string
	PgPassword string
}

Configuration contains all the configuration parameters that we read from the process environment on startup.

func NewConfiguration

func NewConfiguration() (*Configuration, error)

NewConfiguration reads all configuration parameters from the process environment.

func (Configuration) ArgsForPsql

func (cfg Configuration) ArgsForPsql(args ...string) []string

ArgsForPsql prepends common options for psql to the given list of arguments. The arguments given to this method are specific to a particular psql invocation, and this function adds those that are always required.

Jump to

Keyboard shortcuts

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