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: 0

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