finisher

package
v0.31.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FinishRequest

func FinishRequest(ctx context.Context, fn ResultFunc) (runtime.Object, error)

FinishRequest makes a given ResultFunc asynchronous and handles errors returned by the response.

Types

type PostTimeoutLoggerFunc

type PostTimeoutLoggerFunc func(timedOutAt time.Time, r *result)

PostTimeoutLoggerFunc is a function that can be used to log the result returned by a ResultFunc after the request had timed out. timedOutAt is the time the request had been timed out. r is the result returned by the child goroutine.

type ResultFunc

type ResultFunc func() (runtime.Object, error)

ResultFunc is a function that returns a rest result and can be run in a goroutine

Jump to

Keyboard shortcuts

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