fabctx

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NoSignals

func NoSignals(opts *fabCtxOpts)

Types

type FabCtx

type FabCtx struct {
	// contains filtered or unexported fields
}

func Get

func Get(ctx context.Context) *FabCtx

func New

func New(options ...Option) *FabCtx

Returns a cli-appropriate context (cancelable by ctrl+c).

func WithLinting

func WithLinting(parent *FabCtx) *FabCtx

func (*FabCtx) CleanupCtx

func (ctx *FabCtx) CleanupCtx() context.Context

func (*FabCtx) Deadline

func (ctx *FabCtx) Deadline() (deadline time.Time, ok bool)

func (*FabCtx) Done

func (ctx *FabCtx) Done() <-chan struct{}

func (*FabCtx) Err

func (ctx *FabCtx) Err() error

func (*FabCtx) IsLinting

func (ctx *FabCtx) IsLinting() bool

func (*FabCtx) Value

func (ctx *FabCtx) Value(v any) any

type Option

type Option func(*fabCtxOpts)

Jump to

Keyboard shortcuts

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