operation

package
v0.0.0-...-8ad281a Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2023 License: AGPL-3.0 Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrorMultipleFilesWithoutName = errors.New(
	"backup name is required when handling more than one file or directory. " +
		"See the help section (enter --help) for further information",
)

ErrorMultipleFilesWithoutName is an error when handling more than one file or directory without backup name.

View Source
var ErrorNoResourcesToBackup = errors.New("resources for backup were not specified")

ErrorNoResourcesToBackup is an error when no resources were specified for backup.

Functions

This section is empty.

Types

type Save

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

Save is a command for save new backup to storage.

func NewSave

func NewSave(defaultConfigPath string) *Save

NewSave creates a new Save.

func (*Save) Command

func (s *Save) Command() *cobra.Command

func (*Save) FlagSet

func (s *Save) FlagSet() *pflag.FlagSet

FlagSet returns a flag set for save command.

Jump to

Keyboard shortcuts

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