work

package
v0.0.0-...-b45f9ea Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildTask

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

func NewBuildTask

func NewBuildTask(name string, task func(Work) error) *BuildTask

func (*BuildTask) Name

func (t *BuildTask) Name() string

func (*BuildTask) Run

func (t *BuildTask) Run(w *Work) error

type Work

type Work struct {
	Base string

	Cmd  *cobra.Command
	Dirs *dirs
	// contains filtered or unexported fields
}

func New

func New(dir string) *Work

func (Work) Build

func (work Work) Build(p config.Profile, t config.Target, c *cobra.Command) error

func (*Work) GetChroot

func (w *Work) GetChroot() (*airootfs.Chroot, error)

func (*Work) GetDirs

func (w *Work) GetDirs() (*dirs, error)

func (*Work) RunOnce

func (w *Work) RunOnce(task *BuildTask) error

func (*Work) Values

func (w *Work) Values() *configValues

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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