fakeclient

package
v0.28.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 14, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

README

Fake Client Example

This example demonstrates how to use a fake client with SharedInformerFactory in tests.

It covers:

  • Creating the fake client
  • Setting up real informers
  • Injecting events into those informers

Running

go test -v k8s.io/client-go/examples/fake-client

Documentation

Overview

Package fakeclient contains examples on how to use fakeclient in tests. Note: This file is here to avoid warnings on go build since there are no non-test files in this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL