app

package
v0.0.0-...-0bc2699 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2022 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backup

type Backup struct {
	Command
	ConfigPath string `required:"true" short:"c" long:"config" description:"The path to the YAML configuration required by hoard"`
}

Backup provides the logic to run Hoard's backup functionality.

func NewBackup

func NewBackup(opts ...CommandOption) *Backup

NewBackup instantiates an instance of the Backup command.

func (*Backup) Execute

func (b *Backup) Execute(args []string) error

Execute implements the go-flags Commander interface for the backup command, which uses the supplied configuration YAML to back up a set of directories to a storage backend.

type Command

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

Command provides common base logic for Hoard sub-commands to build upon.

type CommandOption

type CommandOption func(*Command)

CommandOption provides a way to configure a command.

func WithConfig

func WithConfig(config *config.Config) CommandOption

WithConfig sets the configuration on the command instance.

Jump to

Keyboard shortcuts

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