kontext

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2020 License: MIT Imports: 6 Imported by: 0

README

kontext

Go context wrapper for kubernetes

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotReady     = errors.New("kontext: not ready")
	ErrNotAlive     = errors.New("kontext: not alive")
	ErrAlreadyReady = errors.New("kontext: already ready")
	ErrAlreadyAlive = errors.New("kontext: already alive")
)

Functions

func Alive

func Alive() (Context, CancelFunc, error)

func Ready

func Ready() (Context, CancelFunc, error)

func SetAlive

func SetAlive(parent Context) error

func SetReady

func SetReady(parent Context) error

func WithCancel

func WithCancel(parent Context) (Context, CancelFunc)

func WithDeadline

func WithDeadline(parent Context, d time.Time) (Context, CancelFunc)

func WithTimeout

func WithTimeout(parent Context, timeout time.Duration) (Context, CancelFunc)

Types

type CancelFunc

type CancelFunc = context.CancelFunc

type Context

type Context = context.Context

func Background

func Background() Context

func TODO

func TODO() Context

func WithValue

func WithValue(parent Context, key, value interface{}) Context

Jump to

Keyboard shortcuts

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