Documentation ¶
Index ¶
- Constants
- func PrettyIdentity(v Identifiable) string
- type Identifiable
- type Logger
- func (l Logger) Body(format string, args ...interface{})
- func (l Logger) BodyError(format string, args ...interface{})
- func (l Logger) BodyIndent(format string, args ...interface{}) string
- func (l Logger) BodyWarning(format string, args ...interface{})
- func (l Logger) Header(format string, args ...interface{})
- func (l Logger) HeaderError(format string, args ...interface{})
- func (l Logger) HeaderWarning(format string, args ...interface{})
- func (l Logger) LaunchConfiguration(format string, defaultValue string)
- func (l Logger) TerminalError(v Identifiable, format string, args ...interface{})
- func (l Logger) Title(v Identifiable)
Constants ¶
const ( BodyIndent = " " HeaderIndent = " " )
Variables ¶
This section is empty.
Functions ¶
func PrettyIdentity ¶
func PrettyIdentity(v Identifiable) string
PrettyIdentity formats a standard pretty identity of a type.
Types ¶
type Identifiable ¶
type Identifiable interface { // Identity is the method that returns the required name and optional description that make up identity. Identity() (name string, description string) }
Identifiable is an interface that indicates that a type has an identity.
type Logger ¶
Logger is an extension to libbuildpack.Logger to add additional functionality.
func (Logger) BodyError ¶
BodyError prints the log message colored red and bold with each line indented four spaces.
func (Logger) BodyIndent ¶
BodyIndent indents each line of a log message to the BodyIndent offset.
func (Logger) BodyWarning ¶
BodyWarning prints the log message colored yellow and bold with each line indented four spaces.
func (Logger) Header ¶
Header prints the log message indented two spaces, with an empty line above it.
func (Logger) HeaderError ¶
HeaderError prints the log message colored red and bold, indented two spaces, with an empty line above it.
func (Logger) HeaderWarning ¶
HeaderWarning prints the log message colored yellow and bold, indented two spaces, with an empty line above it.
func (Logger) LaunchConfiguration ¶
func (Logger) TerminalError ¶
func (l Logger) TerminalError(v Identifiable, format string, args ...interface{})
Terminal error prints the build description colored red and bold, flush left, with an empty line above it, followed by the log message message red and bold, and indented two spaces.
func (Logger) Title ¶
func (l Logger) Title(v Identifiable)
Title prints the buildpack description flush left, with an empty line above it.