pack

package
v0.0.0-...-6117bb9 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const StatusCodeUndetectedNoError = 20

All buildpacks groups have failed to detect w/o error. See https://buildpacks.io/docs/concepts/components/lifecycle/detect/#exit-codes

Variables

View Source
var PackVersion semver.Version = semver.MustParse("0.30.0")

PackVersion is the minimum version of pack that we require (and the one we fetch when we fetch pack on behalf of a user).

Functions

This section is empty.

Types

type PackCli

type PackCli interface {
	Build(
		ctx context.Context,
		cwd string,
		builder string,
		imageName string,
		environ []string,
		progressWriter io.Writer,
	) error
}

func NewPackCli

func NewPackCli(
	ctx context.Context,
	console input.Console,
	commandRunner exec.CommandRunner,
) (PackCli, error)

NewPackCli creates a new PackCli. azd manages its own copy of the pack CLI, stored in `$AZD_CONFIG_DIR/bin`. If pack is not present at this location, or if it is present but is older than the minimum supported version, it is downloaded.

func NewPackCliWithPath

func NewPackCliWithPath(
	commandRunner exec.CommandRunner,
	cliPath string,
) PackCli

type StatusCodeError

type StatusCodeError struct {
	Err error

	// See all available status codes https://buildpacks.io/docs/concepts/components/lifecycle/create/
	Code int
}

StatusCodeError is a status code error provided by pack CLI.

func (*StatusCodeError) Error

func (s *StatusCodeError) Error() string

func (*StatusCodeError) Unwrap

func (s *StatusCodeError) Unwrap() error

Jump to

Keyboard shortcuts

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