gardener: github.com/gardener/gardener/pkg/utils/context Index | Files

package context

import "github.com/gardener/gardener/pkg/utils/context"

Index

Package Files

context.go types.go

func FromStopChannel Uses

func FromStopChannel(stopCh <-chan struct{}) context.Context

FromStopChannel creates a new context from a given stop channel.

type Ops Uses

type Ops interface {
    // WithTimeout returns a new context with the given timeout that can be canceled with the returned function.
    WithTimeout(ctx context.Context, timeout time.Duration) (context.Context, context.CancelFunc)
}

Ops are operations to do with a context. They mimic the functions from the context package.

func DefaultOps Uses

func DefaultOps() Ops

DefaultOps returns the default Ops implementation.

Package context imports 2 packages (graph) and is imported by 14 packages. Updated 2020-07-31. Refresh now. Tools for package owners.