Documentation ¶ Index ¶ func Save(path string, f *File) error type BatchJob type File func Load(path string) (*File, error) 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"` Dest string `yaml:"dest"` SHA256 string `yaml:"sha256"` Type string `yaml:"type"` Place bool `yaml:"place"` Mode string `yaml:"mode"` // symlink|hardlink|copy } type File ¶ type File struct { Version int `yaml:"version"` Jobs []BatchJob `yaml:"jobs"` } func Load ¶ func Load(path string) (*File, error) Source Files ¶ View all Source files batch.go Click to show internal directories. Click to hide internal directories.