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
Click to show internal directories.
Click to hide internal directories.