package
0.0.0-20250304201544-e5f78fe3ede9
Repository: https://github.com/kubernetes/kube-openapi.git
Documentation: pkg.go.dev
# Functions
Func wraps a (thread-safe) function as a Value[T].
Merge merges a of cached values.
MergeList merges a list of cached values.
Once calls Value[T].Get() lazily and only once, even in case of an error result.
Static returns constant values.
Transform the result of another cached value.
# Structs
Atomic wraps a Value[T] as an atomic value that can be replaced.
LastSuccess calls Value[T].Get(), but hides errors by returning the last success if there has been any.
Result is wrapping T and error into a struct for cases where a tuple is more convenient or necessary in Golang.
# Interfaces
Replaceable extends the Value[T] interface with the ability to change the underlying Value[T] after construction.
Value is wrapping a value behind a getter for lazy evaluation.