v0

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UpgradeConfig

func UpgradeConfig(cfgBytes []byte) ([]byte, error)

Types

type Config

type Config struct {
	// Script specifies the content of the script that is run to determine the version for the project. This script is
	// written to a temporary directory with executable permissions (0755) and run. The absolute path to the project
	// directory is set as the environment variable "PROJECT_DIR". The script is written exactly as provided, so any
	// necessary headers (#! etc.) should be included. If the script exits with an exit code of 0, the result of calling
	// strings.TrimSpace on the output produced by the script (STDOUT and STDERR) is returned as the version. If the
	// script exist with a non-0 exit code, that is treated as an error.
	Script string `yaml:"script,omitempty"`
}

Jump to

Keyboard shortcuts

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