buildcontext

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildIDFromContext

func BuildIDFromContext(ctx context.Context) (gocql.UUID, bool)

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

func NewBuildIDContext(ctx context.Context, id gocql.UUID, span tracer.Span) context.Context

NewBuildIDContext returns a context with the current build ID and time started stored as values

func NewPushStartedContext

func NewPushStartedContext(ctx context.Context) context.Context

NewPushStartedContext returns a context with the push started timestamp stored as a value

func PushStartedFromContext

func PushStartedFromContext(ctx context.Context) (time.Time, bool)

PushStartedFromContext returns the time the push started stored in ctx, if any

func StartedFromContext

func StartedFromContext(ctx context.Context) (time.Time, bool)

StartedFromContext returns the time the build started stored in ctx, if any

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL