Documentation ¶
Index ¶
- func Build(ctx zbcontext.Context, tt TargetType, targets []*Target) (int, error)
- func Each(ctx zbcontext.Context, targets []*Target, fn TargetFunc) error
- type Dependency
- type File
- type GoFile
- func (e *GoFile) Build(zbcontext.Context) error
- func (e *GoFile) Buildable() bool
- func (e *GoFile) Dependencies(ctx zbcontext.Context) ([]Dependency, error)
- func (e *GoFile) Generate(ctx zbcontext.Context) error
- func (e *GoFile) Install(zbcontext.Context) error
- func (e *GoFile) ModTime() time.Time
- func (e *GoFile) Name() string
- type GoGenerateFile
- func (f GoGenerateFile) Build(ctx zbcontext.Context) error
- func (f GoGenerateFile) Buildable() bool
- func (f GoGenerateFile) Dependencies(zbcontext.Context) ([]Dependency, error)
- func (f GoGenerateFile) Install(ctx zbcontext.Context) error
- func (f GoGenerateFile) ModTime() time.Time
- func (f GoGenerateFile) Name() string
- type GoPackage
- func (pkg *GoPackage) Build(ctx zbcontext.Context) error
- func (pkg *GoPackage) BuildArgs(ctx zbcontext.Context) []string
- func (pkg *GoPackage) Buildable() bool
- func (pkg *GoPackage) Dependencies(ctx zbcontext.Context) ([]Dependency, error)
- func (pkg *GoPackage) Install(ctx zbcontext.Context) error
- func (pkg *GoPackage) ModTime() time.Time
- func (pkg *GoPackage) Name() string
- type Target
- type TargetFunc
- type TargetType
- type Targets
- type TargetsRangeFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Dependency ¶
type File ¶
type File string
func (File) Dependencies ¶
func (f File) Dependencies(zbcontext.Context) ([]Dependency, error)
type GoFile ¶
type GoFile struct { BuildArgs []string Path string ProjectImportPath string // contains filtered or unexported fields }
func (*GoFile) Dependencies ¶
func (e *GoFile) Dependencies(ctx zbcontext.Context) ([]Dependency, error)
type GoGenerateFile ¶
func (GoGenerateFile) Buildable ¶
func (f GoGenerateFile) Buildable() bool
func (GoGenerateFile) Dependencies ¶
func (f GoGenerateFile) Dependencies(zbcontext.Context) ([]Dependency, error)
func (GoGenerateFile) ModTime ¶
func (f GoGenerateFile) ModTime() time.Time
func (GoGenerateFile) Name ¶
func (f GoGenerateFile) Name() string
type GoPackage ¶
type GoPackage struct { *build.Package Hash *plumbing.Hash Path string ProjectImportPath string // contains filtered or unexported fields }
func (*GoPackage) Dependencies ¶
func (pkg *GoPackage) Dependencies(ctx zbcontext.Context) ([]Dependency, error)
type Target ¶
type Target struct { Dependency RequiredBy Targets Data interface{} sync.WaitGroup // contains filtered or unexported fields }
func NewTarget ¶
func NewTarget(dep Dependency, req *Target) *Target
type TargetFunc ¶
type TargetType ¶
type TargetType int
const ( TargetBuild TargetType = iota TargetInstall TargetGenerate )
func (TargetType) String ¶
func (tt TargetType) String() string
type Targets ¶
type Targets struct {
// contains filtered or unexported fields
}
func (*Targets) Range ¶
func (ts *Targets) Range(fn TargetsRangeFunc)
func (*Targets) TopologicalSort ¶
type TargetsRangeFunc ¶
type TargetsRangeFunc func(target *Target)
Click to show internal directories.
Click to hide internal directories.