build

package
v3.7.8 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

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)

Option func

func Path

func Path(p string) Option

Path is the Local path for repository

type Options

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

Options struct

type Package

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

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

Jump to

Keyboard shortcuts

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