build

package
v3.0.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2020 License: Apache-2.0 Imports: 0 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package build is for building source into a package

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Build

type Build interface {
	// Package builds a package
	Package(name string, src *Source) (*Package, error)
	// Remove removes the package
	Remove(*Package) error
}

Build is an interface for building packages

type Option

type Option func(o *Options)

func Path

func Path(p string) Option

Local path for repository

type Options

type Options struct {
	// local path to download source
	Path string
}

type Package

type Package struct {
	// Name of the package
	Name string
	// Location of the package
	Path string
	// Type of package e.g tarball, binary, docker
	Type string
	// Source of the package
	Source *Source
}

Package is packaged format for source

type Source

type Source struct {
	// Path to the source if local
	Path string
	// Language is the language of code
	Language string
	// Location of the source
	Repository string
}

Source is the source of a build

Directories

Path Synopsis
Package docker builds docker images
Package docker builds docker images
Package golang is a go package manager
Package golang is a go package manager
Package tar basically tarballs source code
Package tar basically tarballs source code

Jump to

Keyboard shortcuts

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