Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Emitter ¶
Emitter defines the interface that emitter objects for framework vents must implement
type EmitterFetcher ¶
EmitterFetcher defines the interface that objects supporting emitting and retrieving framework events must implement
type Event ¶
type Event struct { // SequenceID represents an ordering parameter between events of the same job SequenceID uint64 JobID types.JobID EventName event.Name Payload *json.RawMessage EmitTime time.Time }
Event represents an event emitted by the framework
type Fetcher ¶
type Fetcher interface {
Fetch(ctx xcontext.Context, fields ...QueryField) ([]Event, error)
}
Fetcher defines the interface that fetcher objects for framework events must implement
type Query ¶
Query wraps information that are used to build event queries for framework events
func BuildQuery ¶
func BuildQuery(queryFields ...QueryField) (*Query, error)
BuildQuery compiles a Query from scratch using values of queryFields. It does basically just creates an empty query an applies queryFields to it.
type QueryField ¶
type QueryField interface {
// contains filtered or unexported methods
}
QueryField defines a function type used to set a field's value on Query objects
func QueryEmittedEndTime ¶
func QueryEmittedEndTime(emittedEndTime time.Time) QueryField
QueryEmittedEndTime sets the EmittedEndTime field of the Query object
func QueryEmittedStartTime ¶
func QueryEmittedStartTime(emittedStartTime time.Time) QueryField
QueryEmittedStartTime sets the EmittedStartTime field of the Query object
func QueryEventName ¶
func QueryEventName(eventName event.Name) QueryField
QueryEventName sets a single EventName field in the Query object
func QueryEventNames ¶
func QueryEventNames(eventNames []event.Name) QueryField
QueryEventNames the EventNames field of the Query object
func QueryJobID ¶
func QueryJobID(jobID types.JobID) QueryField
QueryJobID sets the JobID field of the Query object
type QueryFields ¶
type QueryFields []QueryField
QueryFields is a set of field values for a Query object
func (QueryFields) BuildQuery ¶
func (queryFields QueryFields) BuildQuery() (*Query, error)
BuildQuery compiles a Query from scratch using values of queryFields. It does basically just creates an empty query an applies queryFields to it.