fake

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: Apache-2.0 Imports: 94 Imported by: 0

Documentation

Overview

This package has the automatically generated fake clientset.

Index

Constants

This section is empty.

Variables

View Source
var AddToScheme = localSchemeBuilder.AddToScheme

AddToScheme adds all types of this clientset into the given scheme. This allows composition of clientsets, like in:

import (
  "k8s.io/client-go/kubernetes"
  clientsetscheme "k8s.io/client-go/kubernetes/scheme"
  aggregatorclientsetscheme "k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset/scheme"
)

kclientset, _ := kubernetes.NewForConfig(c)
_ = aggregatorclientsetscheme.AddToScheme(clientsetscheme.Scheme)

After this, RawExtensions in Kubernetes types will serialize kube-aggregator types correctly.

Functions

This section is empty.

Types

type Clientset

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

Clientset implements clientset.Interface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the method you want to test easier.

func NewSimpleClientset

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

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 (*Clientset) AlertingV1alpha1

AlertingV1alpha1 retrieves the AlertingV1alpha1Client

func (*Clientset) ApplicationV1alpha1

ApplicationV1alpha1 retrieves the ApplicationV1alpha1Client

func (*Clientset) AutotagV1alpha1

func (c *Clientset) AutotagV1alpha1() autotagv1alpha1.AutotagV1alpha1Interface

AutotagV1alpha1 retrieves the AutotagV1alpha1Client

func (*Clientset) AwsV1alpha1

func (c *Clientset) AwsV1alpha1() awsv1alpha1.AwsV1alpha1Interface

AwsV1alpha1 retrieves the AwsV1alpha1Client

func (*Clientset) AzureV1alpha1

func (c *Clientset) AzureV1alpha1() azurev1alpha1.AzureV1alpha1Interface

AzureV1alpha1 retrieves the AzureV1alpha1Client

func (*Clientset) BrowserV1alpha1 added in v0.4.0

func (c *Clientset) BrowserV1alpha1() browserv1alpha1.BrowserV1alpha1Interface

BrowserV1alpha1 retrieves the BrowserV1alpha1Client

func (*Clientset) CalculatedV1alpha1

CalculatedV1alpha1 retrieves the CalculatedV1alpha1Client

func (*Clientset) CustomV1alpha1

func (c *Clientset) CustomV1alpha1() customv1alpha1.CustomV1alpha1Interface

CustomV1alpha1 retrieves the CustomV1alpha1Client

func (*Clientset) DashboardV1alpha1

DashboardV1alpha1 retrieves the DashboardV1alpha1Client

func (*Clientset) DatabaseV1alpha1

DatabaseV1alpha1 retrieves the DatabaseV1alpha1Client

func (*Clientset) Discovery

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

func (*Clientset) DiskV1alpha1

func (c *Clientset) DiskV1alpha1() diskv1alpha1.DiskV1alpha1Interface

DiskV1alpha1 retrieves the DiskV1alpha1Client

func (*Clientset) EnvironmentV1alpha1 added in v0.4.0

EnvironmentV1alpha1 retrieves the EnvironmentV1alpha1Client

func (*Clientset) HostV1alpha1

func (c *Clientset) HostV1alpha1() hostv1alpha1.HostV1alpha1Interface

HostV1alpha1 retrieves the HostV1alpha1Client

func (*Clientset) HttpV1alpha1 added in v0.4.0

func (c *Clientset) HttpV1alpha1() httpv1alpha1.HttpV1alpha1Interface

HttpV1alpha1 retrieves the HttpV1alpha1Client

func (*Clientset) K8sV1alpha1

func (c *Clientset) K8sV1alpha1() k8sv1alpha1.K8sV1alpha1Interface

K8sV1alpha1 retrieves the K8sV1alpha1Client

func (*Clientset) KeyV1alpha1 added in v0.5.0

func (c *Clientset) KeyV1alpha1() keyv1alpha1.KeyV1alpha1Interface

KeyV1alpha1 retrieves the KeyV1alpha1Client

func (*Clientset) MaintenanceV1alpha1

MaintenanceV1alpha1 retrieves the MaintenanceV1alpha1Client

func (*Clientset) ManagementV1alpha1

ManagementV1alpha1 retrieves the ManagementV1alpha1Client

func (*Clientset) MobileV1alpha1 added in v0.4.0

func (c *Clientset) MobileV1alpha1() mobilev1alpha1.MobileV1alpha1Interface

MobileV1alpha1 retrieves the MobileV1alpha1Client

func (*Clientset) NotificationV1alpha1

NotificationV1alpha1 retrieves the NotificationV1alpha1Client

func (*Clientset) ProcessgroupV1alpha1

ProcessgroupV1alpha1 retrieves the ProcessgroupV1alpha1Client

func (*Clientset) RequestV1alpha1

func (c *Clientset) RequestV1alpha1() requestv1alpha1.RequestV1alpha1Interface

RequestV1alpha1 retrieves the RequestV1alpha1Client

func (*Clientset) ResourceV1alpha1

ResourceV1alpha1 retrieves the ResourceV1alpha1Client

func (*Clientset) ServiceV1alpha1

func (c *Clientset) ServiceV1alpha1() servicev1alpha1.ServiceV1alpha1Interface

ServiceV1alpha1 retrieves the ServiceV1alpha1Client

func (*Clientset) SloV1alpha1

func (c *Clientset) SloV1alpha1() slov1alpha1.SloV1alpha1Interface

SloV1alpha1 retrieves the SloV1alpha1Client

func (*Clientset) SpanV1alpha1

func (c *Clientset) SpanV1alpha1() spanv1alpha1.SpanV1alpha1Interface

SpanV1alpha1 retrieves the SpanV1alpha1Client

func (*Clientset) Tracker

func (c *Clientset) Tracker() testing.ObjectTracker

func (*Clientset) UserV1alpha1 added in v0.5.0

func (c *Clientset) UserV1alpha1() userv1alpha1.UserV1alpha1Interface

UserV1alpha1 retrieves the UserV1alpha1Client

func (*Clientset) WebV1alpha1 added in v0.5.0

func (c *Clientset) WebV1alpha1() webv1alpha1.WebV1alpha1Interface

WebV1alpha1 retrieves the WebV1alpha1Client

Jump to

Keyboard shortcuts

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