contexts

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	context.Context
	Name               string
	ContainerBackupDir string   // initially set by daemon cli, is passed through on all other instances
	HostBackupDir      string   // initially set by daemon cli, is passed through on all other instances
	DockerHosts        []string // initially set by daemon cli, is passed through on all other instances
	Debug              bool
	DryRun             bool
	// contains filtered or unexported fields
}

func Cobra

func Cobra(cmd *cobra.Command, feedback func(Context, any)) (Context, error)

func Create

func Create(context context.Context, name string, containerBackupDir string, hostBackupDir string, dockerHosts []string, debug Debug, dryrun DryRun, feedback func(Context, any)) Context

func (Context) Feedback

func (c Context) Feedback(data any)

func (Context) FeedbackJson added in v0.0.8

func (c Context) FeedbackJson(data any) error

type Debug added in v0.0.14

type Debug bool

type DryRun added in v0.0.14

type DryRun bool

Jump to

Keyboard shortcuts

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