dist

package
v0.0.0-...-64567a0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2017 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command() cli.Command

func FullArtifactsPaths

func FullArtifactsPaths(dister Dister, buildSpec params.ProductBuildSpec, distCfg params.Dist) []string

func Products

func Products(products []string, cfg params.Project, forceBuild bool, wd string, stdout io.Writer) error

func RequiresDist

func RequiresDist(products []string, cfg params.Project, wd string) ([]string, error)

func Run

func Run(buildSpecWithDeps params.ProductBuildSpecWithDeps, stdout io.Writer) error

Run produces a directory and artifacts (such as a .tgz or .rpm) for the specified product using the specified build specification. The binaries for the distribution must already exist in the expected locations. The distribution directory and artifact are written to the directory specified by "buildSpecWithDeps.Spec.DistCfgs.*.OutputDir".

Types

type Dister

type Dister interface {
	NumArtifacts() int
	ArtifactPathsInOutputDir(buildSpec params.ProductBuildSpec) []string
	Dist(buildSpecWithDeps params.ProductBuildSpecWithDeps, distCfg params.Dist, outputProductDir string, spec specdir.LayoutSpec, values specdir.TemplateValues, stdout io.Writer) (Packager, error)
	DistPackageType() string
}

func ToDister

func ToDister(info params.DistInfo) Dister

type Packager

type Packager interface {
	Package() error
}

Jump to

Keyboard shortcuts

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