project

package
v0.0.0-...-5001955 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrProjectPayloadNotFound = errors.New("project payload file not found")
)

Functions

func IsNotFound

func IsNotFound(err error) bool

Types

type Dependency

type Dependency struct {
	Name    string
	Version string
	Package nix.Package
}

type Project

type Project struct {
	Name         string
	URL          string
	Provider     string
	Dependencies []Dependency
	Tasks        Tasks
	Environment  map[string]string
	Path         string
	ModTime      time.Time
	IP           net.IP
	// contains filtered or unexported fields
}

func FindInTree

func FindInTree() (*Project, error)

func (*Project) DerivationExecutor

func (p *Project) DerivationExecutor() executor.Executor

func (*Project) EnsureDependencies

func (p *Project) EnsureDependencies() error

func (*Project) Execute

func (p *Project) Execute(args []string, opts ...executor.Option) error

func (*Project) HostExecutor

func (p *Project) HostExecutor() executor.Executor

func (*Project) NeedsUpdate

func (p *Project) NeedsUpdate() bool

func (*Project) Task

func (p *Project) Task(name string) (Task, error)

func (*Project) UnmarshalYAML

func (p *Project) UnmarshalYAML(unmarshal func(interface{}) error) error

func (*Project) VDPath

func (p *Project) VDPath() string

func (*Project) VariableDataPath

func (p *Project) VariableDataPath(parts ...string) string

type Task

type Task struct {
	Name        string
	Description string `yaml:"desc"`
	Command     string `yaml:"cmd"`
}

type Tasks

type Tasks []Task

func (Tasks) Len

func (tt Tasks) Len() int

func (Tasks) Less

func (tt Tasks) Less(i, j int) bool

func (Tasks) Swap

func (tt Tasks) Swap(i, j int)

Jump to

Keyboard shortcuts

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