Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventOptions ¶
EventOptions are the options when telling a Reporter to trigger an event
type EventType ¶
type EventType uint8
EventType is a type for constants that indicate the type of event reported
const ( // RequestedEvent is for when a build is initially requested RequestedEvent EventType = iota // BuildEvent is for when a `docker build` command starts BuildEvent // BuildCompletedEvent is for when a `docker build` command completes BuildCompletedEvent // TagEvent is for when a `docker tag` command starts TagEvent // TagCompletedEvent is for when a `docker tag` command finishes TagCompletedEvent // PushEvent is for when a `docker push` command starts PushEvent // PushCompletedEvent is for when a `docker push` command finishes PushCompletedEvent // CompletedEvent is for whe nthe entire build finishes (corresopnds to a RequestedEvent) CompletedEvent )
type ExitChan ¶
type ExitChan chan error
ExitChan is a channel for receiving the final exit value (error or nil)
type LogEntry ¶
LogEntry is a convenient, extensible way to ship logrus log entries
func NewLogEntry ¶
NewLogEntry produces a log entry that can be sent on a LogChan
type LogEntryWriter ¶
LogEntryWriter is a type for implementing the io.Writer interface
func NewLogEntryWriter ¶
func NewLogEntryWriter(ch LogChan) LogEntryWriter
NewLogEntryWriter returns a log entry writer initialized with the provided channel. The provided writer implements the io.Writer interface
type Reporter ¶
type Reporter struct {
// contains filtered or unexported fields
}
Reporter is type for sending messages on log and/or status channels
func NewReporter ¶
NewReporter returns a reporter that is initialized with the provided channels
func (*Reporter) Event ¶
func (r *Reporter) Event(opts EventOptions)
Event notifies the Reporter's EventChan that an event has occurred