lifecycle

package
v0.0.0-...-8cfca67 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Lifecycle

type Lifecycle []*exec.Cmd

Lifecycle is a list of ordered exec.Cmd that should be run to execute a certain process.

func NewLifecycle

func NewLifecycle(sampleDir, serviceName, gcrURL string) (Lifecycle, error)

NewLifecycle tries to parse the different options provided for build and deploy command configuration. If none of those options are set up, it falls back to reasonable defaults based on whether the sample is java-based (has a pom.xml) that doesn't have a Dockerfile or isn't.

func (Lifecycle) Execute

func (l Lifecycle) Execute(commandsDir string) error

Execute executes the commands of a lifecycle in the provided directory.

Jump to

Keyboard shortcuts

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