gobuild

package module
v0.0.0-...-0eedb9d Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 License: BSD-3-Clause Imports: 19 Imported by: 1

README

gobuild

Golang build helpers

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunBuild

func RunBuild(args ...string) error

func RunInstall

func RunInstall(args ...string) error

func RunIntegration

func RunIntegration(paths ...string) error

func RunUnitTest

func RunUnitTest(paths ...string) error

Types

type ArchiveFormat

type ArchiveFormat uint8
const (
	TgzArchive ArchiveFormat = iota
	ZipArchive
)

type Format

type Format uint8
const (
	DEB Format = iota
	RPM
)

type GitArchive

type GitArchive struct {
	// contains filtered or unexported fields
}

func NewGitArchive

func NewGitArchive(prefix string) (*GitArchive, error)

func (*GitArchive) Create

func (ga *GitArchive) Create(format ArchiveFormat, w io.Writer, extraFiles ...string) error

type GitDescription

type GitDescription struct {
	// contains filtered or unexported fields
}

func GitDescribe

func GitDescribe() (*GitDescription, error)

func (*GitDescription) GetSemver

func (gd *GitDescription) GetSemver() (semver.Version, error)

GetSemver returns a semantic version based on d.

func (*GitDescription) ListEntries

func (gd *GitDescription) ListEntries() []string

type Package

type Package struct {
	Packager nfpm.Packager
	Info     *nfpm.Info
}

func NewPackage

func NewPackage(configReader io.Reader, format Format, version string, arch string) (*Package, error)

func (*Package) Create

func (p *Package) Create(w io.Writer) error

Jump to

Keyboard shortcuts

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