eventlogging

package
Version: v0.0.0-...-9a89ba0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2014 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Time    time.Time
	Stage   string
	Total   int
	Task    string
	State   EventState
	Index   int
	Message string
}

type EventFilter

type EventFilter interface {
	Filter(*Event) error
}

func NewTimeFilter

func NewTimeFilter(timeService boshtime.Service) EventFilter

type EventLogger

type EventLogger interface {
	AddEvent(event Event) error
}

func NewEventLogger

func NewEventLogger(ui bmui.UI) EventLogger

func NewEventLoggerWithFilters

func NewEventLoggerWithFilters(ui bmui.UI, filters []EventFilter) EventLogger

type EventState

type EventState string
const (
	Started  EventState = "started"
	Finished EventState = "finished"
	Failed   EventState = "failed"
	Skipped  EventState = "skipped"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL