operational

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnavailable = errors.New("execution prerequisites unavailable")

Functions

func CheckPrivateState

func CheckPrivateState(dir string) error

Types

type Config

type Config struct {
	MaxQueued     int     `yaml:"max-queued"`
	MaxRuns       int     `yaml:"max-active-runs"`
	RunTimeout    string  `yaml:"run-timeout"`
	MinFreeBytes  *uint64 `yaml:"min-free-bytes"`
	MinFreeInodes *uint64 `yaml:"min-free-inodes"`
	TempDirectory string  `yaml:"temporary-directory"`
}

func (Config) Check

func (c Config) Check(path string) (Filesystem, error)

func (Config) TemporaryDirectory

func (c Config) TemporaryDirectory() string

func (Config) Thresholds

func (c Config) Thresholds() (uint64, uint64)

func (Config) Timeout

func (c Config) Timeout() time.Duration

func (Config) Validate

func (c Config) Validate() error

type Filesystem

type Filesystem struct {
	Path       string `json:"path"`
	FreeBytes  uint64 `json:"free_bytes"`
	FreeInodes uint64 `json:"free_inodes"`
}

func StatFilesystem

func StatFilesystem(path string) (Filesystem, error)

type RotatingLog

type RotatingLog struct {
	Path     string
	MaxBytes int64
	Backups  int
	// contains filtered or unexported fields
}

func (*RotatingLog) Close

func (l *RotatingLog) Close() error

func (*RotatingLog) Write

func (l *RotatingLog) Write(data []byte) (int, error)

Jump to

Keyboard shortcuts

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