build

package
v3.0.0-...-9d75b9b Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2022 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder interface {
	// Build a package
	Build(src io.Reader, opts ...Option) (io.Reader, error)
}

Builder is an interface for building packages

var DefaultBuilder Builder

DefaultBuilder implementation. Note: we don't set the client here as that would result in a circular dependancy. This isn't an issue with other interfaces as they're normally defined in go-micro. Profiles should configure this builder but clients of this package should handle the nil value case.

type Option

type Option func(o *Options)

Option configures one or more options

func Archive

func Archive(a string) Option

Archive sets the builders archive

func Entrypoint

func Entrypoint(e string) Option

Entrypoint sets the builders entrypoint

type Options

type Options struct {
	// Archive used, e.g. tar
	Archive string
	// Entrypoint to use, e.g. foo/main.go
	Entrypoint string
}

Options to use when building source

Directories

Path Synopsis
util
tar
Package tar is a wrapper around archive/tar, it's used for archiving and unarchiving source from and into folders on the host.
Package tar is a wrapper around archive/tar, it's used for archiving and unarchiving source from and into folders on the host.
zip
Package zip is a wrapper around archive/zip, it's used for archiving and unarchiving source from and into folders on the host.
Package zip is a wrapper around archive/zip, it's used for archiving and unarchiving source from and into folders on the host.

Jump to

Keyboard shortcuts

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