build

package
v0.7.1 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: 21 Imported by: 0

Documentation

Overview

Package build provides the algorithm for building yb targets.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainerIPEnvVar added in v0.7.0

func ContainerIPEnvVar(resourceName string) string

ContainerIPEnvVar returns the name of the environment variable that optionally provides the IP address of a target's resource.

func Execute

func Execute(ctx context.Context, sys Sys, announce func(string), target *yb.Target) (err error)

Execute runs the given phase. It assumes that the phase's dependencies are already available in the biome.

announce is called before every command run if not nil.

func Setup

func Setup(ctx context.Context, sys Sys, target *yb.Target) (_ biome.BiomeCloser, err error)

Setup arranges for the phase's dependencies to be available, returning a new biome that has the dependencies configured. It is the caller's responsibility to call Close on the returned biome.

Types

type Sys

type Sys = buildpack.Sys

Sys holds dependencies provided by the caller needed to run builds.

Jump to

Keyboard shortcuts

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