daemon

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: MIT Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ControlJobEndpointSignal  = "/signal"
	ControlJobEndpointStatus  = "/status"
	ControlJobEndpointVersion = "/version"
)

Variables

View Source
var DaemonCmd = &cli.Subcommand{
	Use:   "daemon",
	Short: "run the zrepl daemon",

	ConfigWithIncludes: true,

	Run: func(ctx context.Context, subcommand *cli.Subcommand, args []string) error {
		return Run(ctx, subcommand.Config())
	},
}

Functions

func Run

func Run(ctx context.Context, conf *config.Config) error

Types

type GlobalStatus

type GlobalStatus struct {
	ZFSCmds   *zfscmd.Report
	Envconst  *envconst.Report
	OsEnviron []string
}

type Status

type Status struct {
	Jobs   map[string]*job.Status
	Global GlobalStatus
}

func (*Status) JobCounts

func (self *Status) JobCounts() (running, withErr int)

Directories

Path Synopsis
Package hooks implements pre- and post snapshot hooks.
Package hooks implements pre- and post snapshot hooks.
job

Jump to

Keyboard shortcuts

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