apiserverk8s.io/apiserver/pkg/endpoints/handlers/finisher Index | Files

package finisher

import "k8s.io/apiserver/pkg/endpoints/handlers/finisher"

Index

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

Source Files

finisher.go

Version
v0.24.16
Published
Jul 19, 2023
Platform
js/wasm
Imports
11 packages
Last checked
16 minutes ago

Tools for package owners.