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(ctx context.Context) (*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.
Click to show internal directories.
Click to hide internal directories.