Documentation ¶
Index ¶
- Constants
- Variables
- func DisableColor(noColor bool)
- func EnvOrDefault(key string, defaultVal string) string
- func Exit(err error)
- func ExitWithVersion()
- func VerifyBuildpackAPI(kind, name, requested string, logger log.Logger) error
- func VerifyPlatformAPI(requested string, logger log.Logger) error
- type BuildpackAPIVerifier
- type ErrorFail
Constants ¶
View Source
const ( EnvDeprecationMode = "CNB_DEPRECATION_MODE" DefaultDeprecationMode = ModeWarn ModeQuiet = "quiet" ModeWarn = "warn" ModeError = "error" )
View Source
const ( CodeForFailed = 1 // 2: reserved CodeForInvalidArgs = 3 CodeForIncompatiblePlatformAPI = 11 CodeForIncompatibleBuildpackAPI = 12 )
Variables ¶
View Source
var ( DefaultLogger = log.NewDefaultLogger(Stdout) Stdout = color.NewConsole(os.Stdout) Stderr = color.NewConsole(os.Stderr) )
View Source
var ( // Version is the version of the lifecycle and all produced binaries. Version = "0.0.0" // SCMCommit is the commit information provided by SCM. SCMCommit = "" // SCMRepository is the source repository. SCMRepository = "" )
The following variables are injected at compile time.
View Source
var DeprecationMode = EnvOrDefault(EnvDeprecationMode, DefaultDeprecationMode)
Functions ¶
func DisableColor ¶ added in v0.9.2
func DisableColor(noColor bool)
func EnvOrDefault ¶ added in v0.9.0
func ExitWithVersion ¶
func ExitWithVersion()
func VerifyBuildpackAPI ¶ added in v0.9.0
Types ¶
type BuildpackAPIVerifier ¶ added in v0.15.0
type BuildpackAPIVerifier struct{}
func (*BuildpackAPIVerifier) VerifyBuildpackAPI ¶ added in v0.15.0
func (v *BuildpackAPIVerifier) VerifyBuildpackAPI(kind, name, requested string, logger log.Logger) error
Click to show internal directories.
Click to hide internal directories.