Documentation ¶
Overview ¶
Package resources contains utility functions for serving resources.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheGetter ¶
CacheGetter is an interface for getting resources that are cached.
type ConvertFunc ¶
ConvertFunc converts a list of resources to a single resource.
type DynamicGetter ¶
DynamicGetter is an interface for getting resources.
func NewDynamicGetter ¶
func NewDynamicGetter[O any, T runtime.Object, L runtime.Object](syncer Syncer[T, L], convertFunc ConvertFunc[O, T, []T]) DynamicGetter[O]
NewDynamicGetter returns a new Getter that returns the latest list of resources.
type Getter ¶
Getter is an interface for getting resources.
func NewStaticGetter ¶
NewStaticGetter returns a new Getter that returns the given list.
type Synced ¶
type Synced interface {
Sync() <-chan struct{}
}
Synced is an interface for getting resources that are synced.
type Syncer ¶
type Syncer[T runtime.Object, L runtime.Object] interface { UpdateStatus(ctx context.Context, obj T, opts metav1.UpdateOptions) (T, error) List(ctx context.Context, opts metav1.ListOptions) (L, error) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) }
Syncer is an interface for syncing resources.
Click to show internal directories.
Click to hide internal directories.