common

package
v0.0.0-...-b2d74e5 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2020 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	// contains filtered or unexported fields
}

func NewApp

func NewApp() *App

func (*App) DoBackup

func (a *App) DoBackup() error

func (*App) DoRestore

func (a *App) DoRestore() error

func (*App) Run

func (a *App) Run() error

func (*App) Setup

func (a *App) Setup() error

type ConfigBackup

type ConfigBackup struct {
	Connect   *ConfigModule   `yaml:'connect'`
	Input     *ConfigModule   `yaml:'input'`
	Compress  *ConfigModule   `yaml:'compress'`
	Encrypt   *ConfigModule   `yaml:'encrypt'`
	Outputs   []*ConfigModule `yaml:'outputs'`
	Notifiers []*ConfigModule `yaml:'notifiers'`
}

type ConfigModule

type ConfigModule struct {
	Type   string      `yaml:'type'`
	Config interface{} `yaml:'config'`
}

type ConfigRestore

type ConfigRestore struct {
	Connect    ConfigModule
	Input      ConfigModule
	Decompress ConfigModule
	Decrypt    ConfigModule
	Output     ConfigModule
	Notifiers  []ConfigModule
}

type Runner

type Runner struct {
	// contains filtered or unexported fields
}

func (*Runner) Run

func (r *Runner) Run()

type RunnerBackup

type RunnerBackup struct {
	// contains filtered or unexported fields
}

func NewRunnerBackup

func NewRunnerBackup(app *App, config *ConfigBackup) *RunnerBackup

func (*RunnerBackup) Run

func (rb *RunnerBackup) Run() error

Jump to

Keyboard shortcuts

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