project

package
v0.0.0-...-83f582a Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2017 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type List

type List []*Project

func Projects

func Projects(ctx zbcontext.Context, args ...string) (List, error)

Projects lists the unique projects found by parsing the import paths in args

func (List) Build

func (l List) Build(ctx zbcontext.Context, tt dependency.TargetType) (int, error)

func (List) Exists

func (l List) Exists(dir string) (bool, int)

func (*List) Insert

func (l *List) Insert(p *Project) bool

func (*List) Len

func (l *List) Len() int

func (*List) Search

func (l *List) Search(dir string) int

func (List) Targets

func (l List) Targets(ctx zbcontext.Context, tt dependency.TargetType) ([]*dependency.Target, error)

type Package

type Package struct {
	*build.Package

	IsVendored bool
	// contains filtered or unexported fields
}

A Package is a single go Package

func NewPackage

func NewPackage(ctx zbcontext.Context, importPath, srcDir string, includeTestImports bool) (*Package, error)

func (*Package) BuildPath

func (pkg *Package) BuildPath(projectDir string) string

func (*Package) BuildTarget

func (pkg *Package) BuildTarget(ctx zbcontext.Context, projectDir string, gitCommit *plumbing.Hash) *dependency.GoPackage

BuildTarget returns the absolute path of the binary that this package generates when it is built

func (*Package) Deps

func (pkg *Package) Deps(ctx zbcontext.Context) ([]*Package, error)

func (*Package) Hash

func (pkg *Package) Hash(ctx zbcontext.Context) (string, error)

func (*Package) InstallPath

func (pkg *Package) InstallPath() string

func (*Package) InstallTarget

func (pkg *Package) InstallTarget(ctx zbcontext.Context, projectDir string, gitCommit *plumbing.Hash) *dependency.GoPackage

func (*Package) LintHash

func (pkg *Package) LintHash(flag *lintflags.Data) (string, error)

func (*Package) Targets

func (pkg *Package) Targets(ctx zbcontext.Context, tt dependency.TargetType, projectDir string, gitCommit *plumbing.Hash) (*dependency.Targets, error)

func (*Package) TestHash

func (pkg *Package) TestHash(ctx zbcontext.Context, flag *buildflags.TestFlagsData) (string, error)

type Packages

type Packages []*Package

func ListPackages

func ListPackages(ctx zbcontext.Context, paths ...string) (Packages, error)

func (Packages) Append

func (p Packages) Append(r Packages) Packages

func (Packages) Build

func (p Packages) Build(ctx zbcontext.Context, tt dependency.TargetType) (int, error)

func (Packages) Exists

func (p Packages) Exists(dir string) (bool, int)

func (*Packages) Insert

func (p *Packages) Insert(n *Package) bool

func (*Packages) Len

func (p *Packages) Len() int

func (*Packages) Less

func (p *Packages) Less(i, j int) bool

func (*Packages) Search

func (p *Packages) Search(dir string) int

func (*Packages) Swap

func (p *Packages) Swap(i, j int)

func (Packages) Targets

type Project

type Project struct {
	Dir      string
	Packages Packages
	// contains filtered or unexported fields
}

A Project is a collection of Packages contained within a single repository

func (*Project) GitCommit

func (p *Project) GitCommit(logger slog.Interface) *plumbing.Hash

func (*Project) Targets

Jump to

Keyboard shortcuts

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