build

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2018 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BowerBuilder added in v0.3.0

type BowerBuilder struct {
	NodeCmd     string
	NodeVersion string

	BowerCmd     string
	BowerVersion string
}

BowerBuilder implements Builder for Bower. These properties are public for the sake of serialization.

func (*BowerBuilder) Analyze added in v0.3.0

func (builder *BowerBuilder) Analyze(m module.Module, _ bool) ([]module.Dependency, error)

func (*BowerBuilder) Build added in v0.3.0

func (builder *BowerBuilder) Build(m module.Module, force bool) error

func (*BowerBuilder) InferModule added in v0.3.0

func (builder *BowerBuilder) InferModule(target string) (module.Module, error)

func (*BowerBuilder) Initialize added in v0.3.0

func (builder *BowerBuilder) Initialize() error

Initialize collects environment data for Bower builds

func (*BowerBuilder) IsBuilt added in v0.3.0

func (builder *BowerBuilder) IsBuilt(m module.Module, _ bool) (bool, error)

func (*BowerBuilder) IsModule added in v0.3.0

func (builder *BowerBuilder) IsModule(target string) (bool, error)

type BowerComponent added in v0.3.0

type BowerComponent struct {
	Name    string `json:"name"`
	Version string `json:"version"`
}

BowerComponent implements Dependency for BowerBuilder.

func (BowerComponent) Fetcher added in v0.3.0

func (m BowerComponent) Fetcher() string

Fetcher always returns bower for BowerComponent. TODO: Support git and other dependency sources.

func (BowerComponent) Package added in v0.3.0

func (m BowerComponent) Package() string

Package returns the package name for BowerComponent

func (BowerComponent) Revision added in v0.3.0

func (m BowerComponent) Revision() string

Revision returns the version for BowerComponent

type ComposerBuilder added in v0.3.0

type ComposerBuilder struct {
	ComposerCmd     string
	ComposerVersion string

	PhpCmd     string
	PhpVersion string
}

ComposerBuilder implements Builder for Composer (composer.json) builds

func (*ComposerBuilder) Analyze added in v0.3.0

func (builder *ComposerBuilder) Analyze(m module.Module, _ bool) ([]module.Dependency, error)

func (*ComposerBuilder) Build added in v0.3.0

func (builder *ComposerBuilder) Build(m module.Module, force bool) error

func (*ComposerBuilder) InferModule added in v0.3.0

func (builder *ComposerBuilder) InferModule(target string) (module.Module, error)

func (*ComposerBuilder) Initialize added in v0.3.0

func (builder *ComposerBuilder) Initialize() error

func (*ComposerBuilder) IsBuilt added in v0.3.0

func (builder *ComposerBuilder) IsBuilt(m module.Module, _ bool) (bool, error)

func (*ComposerBuilder) IsModule added in v0.3.0

func (builder *ComposerBuilder) IsModule(target string) (bool, error)

type ComposerPackage

type ComposerPackage struct {
	Name    string `json:"name"`
	Version string `json:"version"`
}

ComposerPackage implements Dependency for Composer

func (ComposerPackage) Fetcher

func (m ComposerPackage) Fetcher() string

Fetcher always returns comp for ComposerPackage

func (ComposerPackage) Package

func (m ComposerPackage) Package() string

Package returns the package spec for ComposerPackage

func (ComposerPackage) Revision

func (m ComposerPackage) Revision() string

Revision returns the version spec for ComposerPackage

type GoBuilder added in v0.3.0

type GoBuilder struct {
	GoCmd     string
	GoVersion string

	// dep
	DepCmd     string
	DepVersion string

	// glide
	GlideCmd     string
	GlideVersion string

	// godep
	GodepCmd     string
	GodepVersion string

	// govendor
	GovendorCmd     string
	GovendorVersion string

	// vndr
	VndrCmd     string
	VndrVersion string
}

GoBuilder implements Builder for Golang projects

func (*GoBuilder) Analyze added in v0.3.0

func (builder *GoBuilder) Analyze(m module.Module, allowUnresolved bool) ([]module.Dependency, error)

func (*GoBuilder) Build added in v0.3.0

func (builder *GoBuilder) Build(m module.Module, force bool) error

Build scans for dependencies, building if necessary.

func (*GoBuilder) InferModule added in v0.3.0

func (builder *GoBuilder) InferModule(target string) (module.Module, error)

func (*GoBuilder) Initialize added in v0.3.0

func (builder *GoBuilder) Initialize() error

Initialize gathers environment context.

func (*GoBuilder) IsBuilt added in v0.3.0

func (builder *GoBuilder) IsBuilt(m module.Module, allowUnresolved bool) (bool, error)

IsBuilt checks whether dependencies are ready for scanning.

func (*GoBuilder) IsModule added in v0.3.0

func (builder *GoBuilder) IsModule(target string) (bool, error)

type GoPkg added in v0.3.0

type GoPkg struct {
	ImportPath string `json:"name"`
	Version    string `json:"version"` // This is actually the Git revision, but `.Revision()` is already taken.
	// contains filtered or unexported fields
}

GoPkg implements Dependency for Golang projects.

func (GoPkg) Fetcher added in v0.3.0

func (g GoPkg) Fetcher() string

Fetcher returns "go".

func (GoPkg) Package added in v0.3.0

func (g GoPkg) Package() string

Package returns the package's import path.

func (GoPkg) Revision added in v0.3.0

func (g GoPkg) Revision() string

Revision returns the package's resolved Git revision.

type MavenArtifact

type MavenArtifact struct {
	Name    string `json:"name"`
	Version string `json:"version"`
}

MavenArtifact implements Dependency for Maven builds

func (MavenArtifact) Fetcher

func (m MavenArtifact) Fetcher() string

Fetcher always returns mvn for MavenArtifact

func (MavenArtifact) Package

func (m MavenArtifact) Package() string

Package returns the package spec for MavenArtifact

func (MavenArtifact) Revision

func (m MavenArtifact) Revision() string

Revision returns the version spec for MavenArtifact

type MavenBuilder added in v0.3.0

type MavenBuilder struct {
	MvnCmd     string
	MvnVersion string

	JavaCmd     string
	JavaVersion string
}

MavenBuilder implements Builder for Apache Maven (*.pom.xml) builds

func (*MavenBuilder) Analyze added in v0.3.0

func (builder *MavenBuilder) Analyze(m module.Module, _ bool) ([]module.Dependency, error)

func (*MavenBuilder) Build added in v0.3.0

func (builder *MavenBuilder) Build(m module.Module, force bool) error

func (*MavenBuilder) InferModule added in v0.3.0

func (builder *MavenBuilder) InferModule(target string) (module.Module, error)

func (*MavenBuilder) Initialize added in v0.3.0

func (builder *MavenBuilder) Initialize() error

func (*MavenBuilder) IsBuilt added in v0.3.0

func (builder *MavenBuilder) IsBuilt(m module.Module, _ bool) (bool, error)

IsBuilt checks whether dependencies are ready for scanning.

func (*MavenBuilder) IsModule added in v0.3.0

func (builder *MavenBuilder) IsModule(target string) (bool, error)

type NodeJSBuilder added in v0.3.0

type NodeJSBuilder struct {
	NodeCmd     string
	NodeVersion string

	NpmCmd     string
	NpmVersion string

	YarnCmd     string
	YarnVersion string
}

NodeJSBuilder implements Builder for Nodejs. These properties are public for the sake of serialization.

func (*NodeJSBuilder) Analyze added in v0.3.0

func (builder *NodeJSBuilder) Analyze(m module.Module, _ bool) ([]module.Dependency, error)

func (*NodeJSBuilder) Build added in v0.3.0

func (builder *NodeJSBuilder) Build(m module.Module, force bool) error

func (*NodeJSBuilder) InferModule added in v0.3.0

func (builder *NodeJSBuilder) InferModule(target string) (module.Module, error)

func (*NodeJSBuilder) Initialize added in v0.3.0

func (builder *NodeJSBuilder) Initialize() error

Initialize collects environment data for Nodejs builds

func (*NodeJSBuilder) IsBuilt added in v0.3.0

func (builder *NodeJSBuilder) IsBuilt(m module.Module, _ bool) (bool, error)

func (*NodeJSBuilder) IsModule added in v0.3.0

func (builder *NodeJSBuilder) IsModule(target string) (bool, error)

type NodeModule added in v0.3.0

type NodeModule struct {
	Name    string `json:"name"`
	Version string `json:"version"`
}

NodeModule implements Dependency for NodeJSBuilder.

func (NodeModule) Fetcher added in v0.3.0

func (m NodeModule) Fetcher() string

Fetcher always returns npm for NodeModule. TODO: Support git and other dependency sources.

func (NodeModule) Package added in v0.3.0

func (m NodeModule) Package() string

Package returns the package name for NodeModule

func (NodeModule) Revision added in v0.3.0

func (m NodeModule) Revision() string

Revision returns the version for NodeModule

type RubyBuilder added in v0.3.0

type RubyBuilder struct {
	BundlerCmd     string
	BundlerVersion string

	GemCmd     string
	GemVersion string

	RubyCmd     string
	RubyVersion string
}

RubyBuilder implements Builder for Bundler (Gemfile) builds

func (*RubyBuilder) Analyze added in v0.3.0

func (builder *RubyBuilder) Analyze(m module.Module, _ bool) ([]module.Dependency, error)

func (*RubyBuilder) Build added in v0.3.0

func (builder *RubyBuilder) Build(m module.Module, force bool) error

Build runs Bundler and collect dep data

func (*RubyBuilder) InferModule added in v0.3.0

func (builder *RubyBuilder) InferModule(target string) (module.Module, error)

func (*RubyBuilder) Initialize added in v0.3.0

func (builder *RubyBuilder) Initialize() error

Initialize collects environment data for Bundler builds

func (*RubyBuilder) IsBuilt added in v0.3.0

func (builder *RubyBuilder) IsBuilt(m module.Module, _ bool) (bool, error)

Verify checks if the bundler is satisfied and if an install is necessary

func (*RubyBuilder) IsModule added in v0.3.0

func (builder *RubyBuilder) IsModule(target string) (bool, error)

type RubyGem

type RubyGem struct {
	Name    string `json:"name"`
	Version string `json:"version"`
}

RubyGem implements Dependency for Bundler and RubyGems.

func (RubyGem) Fetcher

func (m RubyGem) Fetcher() string

Fetcher always returns gem for RubyGem

func (RubyGem) Package

func (m RubyGem) Package() string

Package returns the package spec for RubyGem

func (RubyGem) Revision

func (m RubyGem) Revision() string

Revision returns the version spec for RubyGem

type SBTBuilder added in v0.3.0

type SBTBuilder struct {
	SBTCmd     string
	SBTVersion string

	JavaCmd     string
	JavaVersion string
}

SBTBuilder implements build context for SBT builds

func (*SBTBuilder) Analyze added in v0.3.0

func (builder *SBTBuilder) Analyze(m module.Module, _ bool) ([]module.Dependency, error)

func (*SBTBuilder) Build added in v0.3.0

func (builder *SBTBuilder) Build(m module.Module, force bool) error

func (*SBTBuilder) InferModule added in v0.3.0

func (builder *SBTBuilder) InferModule(target string) (module.Module, error)

func (*SBTBuilder) Initialize added in v0.3.0

func (builder *SBTBuilder) Initialize() error

Initialize collects environment data for SBT builds

func (*SBTBuilder) IsBuilt added in v0.3.0

func (builder *SBTBuilder) IsBuilt(m module.Module, _ bool) (bool, error)

IsBuilt checks whether dependencies are ready for scanning.

func (*SBTBuilder) IsModule added in v0.3.0

func (builder *SBTBuilder) IsModule(target string) (bool, error)

type SBTLibrary added in v0.3.0

type SBTLibrary struct {
	Name    string `json:"name"`
	Version string `json:"version"`
}

SBTLibrary implements Dependency for SBT library dependencies

func (SBTLibrary) Fetcher added in v0.3.0

func (m SBTLibrary) Fetcher() string

Fetcher always returns mvn for SBTLibrary

func (SBTLibrary) Package added in v0.3.0

func (m SBTLibrary) Package() string

Package returns the package spec for SBTLibrary

func (SBTLibrary) Revision added in v0.3.0

func (m SBTLibrary) Revision() string

Revision returns the version spec for SBTLibrary

Jump to

Keyboard shortcuts

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