config

package
v18.3.5+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alerts

type Alerts struct {
	ProductName string        `yaml:"product_name"`
	Config      alerts.Config `yaml:"config"`
}

type BackupConfig

type BackupConfig struct {
	Destinations                []Destination `yaml:"destinations"`
	SourceFolder                string        `yaml:"source_folder"`
	SourceExecutable            string        `yaml:"source_executable"`
	CronSchedule                string        `yaml:"cron_schedule"`
	CleanupExecutable           string        `yaml:"cleanup_executable"`
	MissingPropertiesMessage    string        `yaml:"missing_properties_message"`
	ExitIfInProgress            bool          `yaml:"exit_if_in_progress"`
	ServiceIdentifierExecutable string        `yaml:"service_identifier_executable"`
	DeploymentName              string        `yaml:"deployment_name"`
	AddDeploymentName           bool          `yaml:"add_deployment_name_to_backup_path"`
	AwsCliPath                  string        `yaml:"aws_cli_path"`
	AzureCliPath                string        `yaml:"azure_cli_path"`
	Alerts                      *Alerts       `yaml:"alerts,omitempty"`
}

func Parse

func Parse(backupConfigPath string, logger lager.Logger) (BackupConfig, error)

func (BackupConfig) NoDestinations

func (b BackupConfig) NoDestinations() bool

type Destination

type Destination struct {
	Type   string                 `yaml:"type"`
	Name   string                 `yaml:"name"`
	Config map[string]interface{} `yaml:"config"`
}

type RealFileSystem

type RealFileSystem struct{}

func (RealFileSystem) Stat

func (f RealFileSystem) Stat(name string) (os.FileInfo, error)

Jump to

Keyboard shortcuts

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