Documentation ¶
Index ¶
- func BuildIDFromContext(ctx context.Context) (gocql.UUID, bool)
- func IsCancelled(done <-chan struct{}) bool
- func NewBuildIDContext(ctx context.Context, id gocql.UUID, span tracer.Span) context.Context
- func NewPushStartedContext(ctx context.Context) context.Context
- func PushStartedFromContext(ctx context.Context) (time.Time, bool)
- func StartedFromContext(ctx context.Context) (time.Time, bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildIDFromContext ¶
BuildIDFromContext returns the ID stored in ctx, if any
func IsCancelled ¶
func IsCancelled(done <-chan struct{}) bool
IsCancelled checks if the provided done channel is closed
func NewBuildIDContext ¶
NewBuildIDContext returns a context with the current build ID and time started stored as values
func NewPushStartedContext ¶
NewPushStartedContext returns a context with the push started timestamp stored as a value
func PushStartedFromContext ¶
PushStartedFromContext returns the time the push started stored in ctx, if any
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.