cmd

package
v0.0.0-...-54838ba Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2020 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Begin

func Begin(cliArgs []string)

Begin begin!

Types

type ConfigStruct

type ConfigStruct struct {
	LegacyDOKey           string `json:"do_key"`
	LegacyDOSpaceEndpoint string `json:"do_space_endpoint"`
	LegacyDOSpaceName     string `json:"do_space_name"`
	LegacyDOSpaceKey      string `json:"do_space_key"`
	LegacyDOSpaceSecret   string `json:"do_space_secret"`
	LegacyMysqlDataPath   string `json:"mysql_data_path"`

	DigitalOcean      DigitalOceanConfigStruct `json:"digitalocean"`
	Mysql             MysqlConfigStruct        `json:"mysql"`
	PersistentStorage string                   `json:"persistent_storage"`
	Alerting          *pkg.AlertingConfig      `json:"alerting"`
	Retention         *RetentionConfig         `json:"retention"`
}

ConfigStruct contains information that can be preloaded from a .json file

type DigitalOceanConfigStruct

type DigitalOceanConfigStruct struct {
	Key           string `json:"key"`
	SpaceEndpoint string `json:"space_endpoint"`
	SpaceName     string `json:"space_name"`
	SpaceKey      string `json:"space_key"`
	SpaceSecret   string `json:"space_secret"`
}

DigitalOceanConfigStruct contains information related to DigitalOcean

type MysqlConfigStruct

type MysqlConfigStruct struct {
	DataPath string `json:"data_path"`
}

MysqlConfigStruct contains information related to MySQL

type RetentionConfig

type RetentionConfig struct {
	AutomaticallyRemoveOld  bool `json:"automatically_remove_old"`
	RetentionInDays         int  `json:"retention_in_days"`
	RetentionInHours        int  `json:"retention_in_hours"`
	HoursBetweenFullBackups int  `json:"hours_between_full_backups"`
}

RetentionConfig contains options for scheduling: how often full backups are run, retention of old backups

Jump to

Keyboard shortcuts

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