Documentation ¶
Index ¶
- type BowerBuilder
- func (builder *BowerBuilder) Analyze(m module.Module, _ bool) ([]module.Dependency, error)
- func (builder *BowerBuilder) Build(m module.Module, force bool) error
- func (builder *BowerBuilder) InferModule(target string) (module.Module, error)
- func (builder *BowerBuilder) Initialize() error
- func (builder *BowerBuilder) IsBuilt(m module.Module, _ bool) (bool, error)
- func (builder *BowerBuilder) IsModule(target string) (bool, error)
- type BowerComponent
- type ComposerBuilder
- func (builder *ComposerBuilder) Analyze(m module.Module, _ bool) ([]module.Dependency, error)
- func (builder *ComposerBuilder) Build(m module.Module, force bool) error
- func (builder *ComposerBuilder) InferModule(target string) (module.Module, error)
- func (builder *ComposerBuilder) Initialize() error
- func (builder *ComposerBuilder) IsBuilt(m module.Module, _ bool) (bool, error)
- func (builder *ComposerBuilder) IsModule(target string) (bool, error)
- type ComposerPackage
- type GoBuilder
- func (builder *GoBuilder) Analyze(m module.Module, allowUnresolved bool) ([]module.Dependency, error)
- func (builder *GoBuilder) Build(m module.Module, force bool) error
- func (builder *GoBuilder) InferModule(target string) (module.Module, error)
- func (builder *GoBuilder) Initialize() error
- func (builder *GoBuilder) IsBuilt(m module.Module, allowUnresolved bool) (bool, error)
- func (builder *GoBuilder) IsModule(target string) (bool, error)
- type GoPkg
- type MavenArtifact
- type MavenBuilder
- func (builder *MavenBuilder) Analyze(m module.Module, _ bool) ([]module.Dependency, error)
- func (builder *MavenBuilder) Build(m module.Module, force bool) error
- func (builder *MavenBuilder) InferModule(target string) (module.Module, error)
- func (builder *MavenBuilder) Initialize() error
- func (builder *MavenBuilder) IsBuilt(m module.Module, _ bool) (bool, error)
- func (builder *MavenBuilder) IsModule(target string) (bool, error)
- type NodeJSBuilder
- func (builder *NodeJSBuilder) Analyze(m module.Module, _ bool) ([]module.Dependency, error)
- func (builder *NodeJSBuilder) Build(m module.Module, force bool) error
- func (builder *NodeJSBuilder) InferModule(target string) (module.Module, error)
- func (builder *NodeJSBuilder) Initialize() error
- func (builder *NodeJSBuilder) IsBuilt(m module.Module, _ bool) (bool, error)
- func (builder *NodeJSBuilder) IsModule(target string) (bool, error)
- type NodeModule
- type RubyBuilder
- func (builder *RubyBuilder) Analyze(m module.Module, _ bool) ([]module.Dependency, error)
- func (builder *RubyBuilder) Build(m module.Module, force bool) error
- func (builder *RubyBuilder) InferModule(target string) (module.Module, error)
- func (builder *RubyBuilder) Initialize() error
- func (builder *RubyBuilder) IsBuilt(m module.Module, _ bool) (bool, error)
- func (builder *RubyBuilder) IsModule(target string) (bool, error)
- type RubyGem
- type SBTBuilder
- func (builder *SBTBuilder) Analyze(m module.Module, _ bool) ([]module.Dependency, error)
- func (builder *SBTBuilder) Build(m module.Module, force bool) error
- func (builder *SBTBuilder) InferModule(target string) (module.Module, error)
- func (builder *SBTBuilder) Initialize() error
- func (builder *SBTBuilder) IsBuilt(m module.Module, _ bool) (bool, error)
- func (builder *SBTBuilder) IsModule(target string) (bool, error)
- type SBTLibrary
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BowerBuilder ¶ added in v0.3.0
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
type BowerComponent ¶ added in v0.3.0
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
type ComposerPackage ¶
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) InferModule ¶ added in v0.3.0
func (*GoBuilder) Initialize ¶ added in v0.3.0
Initialize gathers environment context.
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.
type MavenArtifact ¶
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
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
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
type NodeModule ¶ added in v0.3.0
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
type RubyGem ¶
RubyGem implements Dependency for Bundler and RubyGems.
type SBTBuilder ¶ added in v0.3.0
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
type SBTLibrary ¶ added in v0.3.0
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