Documentation
¶
Index ¶
- Constants
- type Event
- func (e Event) DurationAsStr(later Event) string
- func (e Event) DurationSinceStartAsStr() string
- func (e Event) IsSame(other Event) bool
- func (e Event) IsSameGroup(other Event) bool
- func (e Event) IsSameTaskID(other Event) bool
- func (e Event) IsWorthKeeping() bool
- func (e Event) Time() time.Time
- func (e Event) TimeAsHoursStr() string
- func (e Event) TimeAsStr() string
- type EventData
- type EventError
- type Reporter
- type ReporterImpl
- type Task
Constants ¶
View Source
const ( EventTypeDeprecation = "deprecation" EventTypeWarning = "warning" EventStateStarted = "started" EventStateFinished = "finished" EventStateFailed = "failed" EventStateInProgress = "in_progress" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct {
TaskID int
UnixTime int64 `json:"time"` // e.g 1451020321
Type string // e.g. "deprecation"
Message string
State string // e.g. "started"
Stage string // e.g. "Preparing deployment"
Task string // e.g. "Binding deployment"
Tags []string // e.g. ["api"]
Total int // e.g. 0
Index int // e.g. 0
Progress int // e.g. 0
Data EventData
Error *EventError
StartEvent *Event
}
func (Event) DurationAsStr ¶
func (Event) DurationSinceStartAsStr ¶
func (Event) IsSameGroup ¶
func (Event) IsSameTaskID ¶
func (Event) IsWorthKeeping ¶
func (Event) TimeAsHoursStr ¶
type EventError ¶
type ReporterImpl ¶
func NewReporter ¶
func NewReporter(ui boshui.UI, isForEvents bool) *ReporterImpl
func (*ReporterImpl) TaskFinished ¶
func (r *ReporterImpl) TaskFinished(id int, state string)
func (*ReporterImpl) TaskOutputChunk ¶
func (r *ReporterImpl) TaskOutputChunk(id int, chunk []byte)
func (*ReporterImpl) TaskStarted ¶
func (r *ReporterImpl) TaskStarted(id int)
Click to show internal directories.
Click to hide internal directories.