package appcontext

import "github.com/moby/buildkit/util/appcontext"

Index

Functions

func Context

func Context() context.Context

Context returns a static context that reacts to termination signals of the running process. Useful in CLI tools.

func Register

func Register(f Initializer)

Register stores a new context initializer that runs on app context creation

Types

type Initializer

type Initializer func(context.Context) context.Context

Source Files

appcontext.go appcontext_unix.go register.go

Version
v0.13.0-beta1
Published
Sep 29, 2023
Platform
js/wasm
Imports
6 packages
Last checked
10 minutes ago

Tools for package owners.