func CreateObjList(prefix string, helper storage.Interface, items []runtime.Object) error { … }
func CreateList(prefix string, helper storage.Interface, list runtime.Object) error { … }
func DeepEqualSafePodSpec() example.PodSpec { … }
func computePodKey(obj *example.Pod) string { … }
func testPropagateStore(ctx context.Context, t *testing.T, store storage.Interface, obj *example.Pod) (string, *example.Pod) { … }
func expectNoDiff(t *testing.T, msg string, expected, actual interface{ … }
func ExpectContains(t *testing.T, msg string, expectedList []interface{ … }
const dummyPrefix …
func encodeContinueOrDie(key string, resourceVersion int64) string { … }
func testCheckEventType(t *testing.T, w watch.Interface, expectEventType watch.EventType) { … }
func testCheckResult(t *testing.T, w watch.Interface, expectEvent watch.Event) { … }
func testCheckResultFunc(t *testing.T, w watch.Interface, check func(actualEvent watch.Event)) { … }
func testCheckResultWithIgnoreFunc(t *testing.T, w watch.Interface, expectedEvents []watch.Event, ignore func(watch.Event) bool) { … }
func testCheckStop(t *testing.T, w watch.Interface) { … }
func TestCheckResultsInStrictOrder(t *testing.T, w watch.Interface, expectedEvents []watch.Event) { … }
func TestCheckNoMoreResultsWithIgnoreFunc(t *testing.T, w watch.Interface, ignore func(watch.Event) bool) { … }
func toInterfaceSlice[T any](s []T) []interface{ … }
func resourceVersionNotOlderThan(sentinel string) func(string) error { … }
type StorageInjectingListErrors …
func (s *StorageInjectingListErrors) GetList(ctx context.Context, key string, opts storage.ListOptions, listObj runtime.Object) error { … }
func (s *StorageInjectingListErrors) ErrorsConsumed() (bool, error) { … }
type PrefixTransformer …
func NewPrefixTransformer(prefix []byte, stale bool) *PrefixTransformer { … }
func (p *PrefixTransformer) TransformFromStorage(ctx context.Context, data []byte, dataCtx value.Context) ([]byte, bool, error) { … }
func (p *PrefixTransformer) TransformToStorage(ctx context.Context, data []byte, dataCtx value.Context) ([]byte, error) { … }
func (p *PrefixTransformer) GetReadsAndReset() uint64 { … }
type reproducingTransformer …
func (rt *reproducingTransformer) TransformFromStorage(ctx context.Context, data []byte, dataCtx value.Context) ([]byte, bool, error) { … }
func (rt *reproducingTransformer) TransformToStorage(ctx context.Context, data []byte, dataCtx value.Context) ([]byte, error) { … }
func (rt *reproducingTransformer) createObject(ctx context.Context) error { … }
type failingTransformer …
func (ft *failingTransformer) TransformFromStorage(ctx context.Context, data []byte, dataCtx value.Context) ([]byte, bool, error) { … }
func (ft *failingTransformer) TransformToStorage(ctx context.Context, data []byte, dataCtx value.Context) ([]byte, error) { … }
type sortablePodList …
func (s sortablePodList) Len() int { … }
func (s sortablePodList) Less(i, j int) bool { … }
func (s sortablePodList) Swap(i, j int) { … }