fake

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Clientset

type Clientset struct {
	*kcptesting.Fake
	// contains filtered or unexported fields
}

Clientset contains the clients for groups.

func (*Clientset) Discovery

func (c *Clientset) Discovery() discovery.DiscoveryInterface

Discovery retrieves the DiscoveryClient

func (*Clientset) EdgeV1alpha1

func (c *Clientset) EdgeV1alpha1() edgev1alpha1.EdgeV1alpha1Interface

EdgeV1alpha1 retrieves the EdgeV1alpha1Client.

func (*Clientset) MetaV1alpha1

func (c *Clientset) MetaV1alpha1() metav1alpha1.MetaV1alpha1Interface

MetaV1alpha1 retrieves the MetaV1alpha1Client.

func (*Clientset) Tracker

type ClusterClientset

type ClusterClientset struct {
	*kcptesting.Fake
	// contains filtered or unexported fields
}

ClusterClientset contains the clients for groups.

func NewSimpleClientset

func NewSimpleClientset(objects ...runtime.Object) *ClusterClientset

NewSimpleClientset returns a clientset that will respond with the provided objects. It's backed by a very simple object tracker that processes creates, updates and deletions as-is, without applying any validations and/or defaults. It shouldn't be considered a replacement for a real clientset and is mostly useful in simple unit tests.

func (*ClusterClientset) Cluster

func (c *ClusterClientset) Cluster(clusterPath logicalcluster.Path) client.Interface

Cluster scopes this clientset to one cluster.

func (*ClusterClientset) Discovery

Discovery retrieves the DiscoveryClient

func (*ClusterClientset) EdgeV1alpha1

EdgeV1alpha1 retrieves the EdgeV1alpha1ClusterClient.

func (*ClusterClientset) MetaV1alpha1

MetaV1alpha1 retrieves the MetaV1alpha1ClusterClient.

func (*ClusterClientset) Tracker

Jump to

Keyboard shortcuts

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