batch

package
v0.0.0-...-62531ef Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2022 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WrapErr

func WrapErr(op string, fn Func) (err error)

Types

type Context

type Context struct {
	Logger        *log.Logger
	GammaCommands settings.Commands
	// contains filtered or unexported fields
}

func (*Context) Set

func (c *Context) Set(s string) (err error)

type ContextPayload

type ContextPayload struct {
	Logfile   path.File         `json:"logfile"`
	GammaPath path.Dir          `json:"gamma_dir"`
	Executor  ExecutorPayload   `json:"executor"`
	Config    cli.PathOrPayload `json:"config"`
}

type Controller

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

func (Controller) Run

func (c Controller) Run() (err error)

func (*Controller) SetCli

func (c *Controller) SetCli(cl *cli.Cli)

type Error

type Error struct {
	Operation string
	// contains filtered or unexported fields
}

func (Error) Error

func (e Error) Error() (s string)

func (Error) Unwrap

func (e Error) Unwrap() (err error)

type ExecutorPayload

type ExecutorPayload struct {
	Tag  string `json:"type"`
	Data []byte `json:"data"`
}

type Func

type Func func() error

type Operation

type Operation interface {
	BatchOp(ctx Context, in io.Reader, out io.Writer) (err error)
}

type OperationMap

type OperationMap map[string]Operation

Jump to

Keyboard shortcuts

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