Documentation ¶
Overview ¶
Package eventlis provides an event listener API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AfterTestsEvent ¶
type AfterTestsEvent struct {
ExitCode *int
}
AfterTestsEvent occurs after the tests are finished executing and before the reservation is released.
type BeforeTestsEvent ¶
type BeforeTestsEvent struct {
Reservation *binding.Reservation
}
BeforeTestsEvent occurs after the reservation is complete and before tests start executing.
type EventListener ¶
type EventListener struct{}
EventListener is an event listener API.
func (*EventListener) AddAfterTestsCallback ¶
func (el *EventListener) AddAfterTestsCallback(cb func(*AfterTestsEvent) error)
AddAfterTestsCallback adds a callback to run after the tests are finished executing and before the reservation is released.
func (*EventListener) AddBeforeTestsCallback ¶
func (el *EventListener) AddBeforeTestsCallback(cb func(*BeforeTestsEvent) error)
AddBeforeTestsCallback adds a callback to run after the reservation is complete and before tests start executing.
Click to show internal directories.
Click to hide internal directories.