batch

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Save

func Save(path string, f *File) error

Save writes a batch File to path in YAML format.

Types

type BatchJob

type BatchJob struct {
	URI            string   `yaml:"uri"`
	Mirrors        []string `yaml:"mirrors"`
	Priority       int      `yaml:"priority"`
	Dest           string   `yaml:"dest"`
	SHA256         string   `yaml:"sha256"`
	Type           string   `yaml:"type"`
	Place          bool     `yaml:"place"`
	Mode           string   `yaml:"mode"` // symlink|hardlink|copy
	Extract        bool     `yaml:"extract"`
	ExtractDir     string   `yaml:"extract_dir"`
	ScheduleWindow string   `yaml:"schedule_window"` // local HH:MM-HH:MM window
}

type File

type File struct {
	Version int        `yaml:"version"`
	Jobs    []BatchJob `yaml:"jobs"`
}

func Load

func Load(path string) (*File, error)

Jump to

Keyboard shortcuts

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