Help us shape the future of Go! Take the 2026 Go Developer Survey

fake

package
v1.31.2 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDynamicClient

func NewDynamicClient(staticClient *staticfake.Clientset, mapper meta.ResettableRESTMapper) *dynamicfake.FakeDynamicClient

func NewStaticClient

func NewStaticClient(mapper meta.ResettableRESTMapper) *staticfake.Clientset

Types

type CachedDiscoveryClient

type CachedDiscoveryClient struct {
	*discfake.FakeDiscovery
}

func NewCachedDiscoveryClient

func NewCachedDiscoveryClient() (*CachedDiscoveryClient, error)

func (*CachedDiscoveryClient) Fresh

func (c *CachedDiscoveryClient) Fresh() bool

func (*CachedDiscoveryClient) Invalidate

func (c *CachedDiscoveryClient) Invalidate()

type ClientFactory

type ClientFactory struct {
	// contains filtered or unexported fields
}

func NewClientFactory

func NewClientFactory(ctx context.Context) (*ClientFactory, error)

func (*ClientFactory) Discovery

func (*ClientFactory) Dynamic

func (f *ClientFactory) Dynamic() dynamic.Interface

func (*ClientFactory) KubeClient

func (f *ClientFactory) KubeClient() kube.KubeClienter

func (*ClientFactory) KubeConfig

func (f *ClientFactory) KubeConfig() *kube.KubeConfig

func (*ClientFactory) LegacyClientGetter

func (f *ClientFactory) LegacyClientGetter() *kube.LegacyClientGetter

func (*ClientFactory) Mapper

func (*ClientFactory) Static

func (f *ClientFactory) Static() kubernetes.Interface

Jump to

Keyboard shortcuts

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