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: 61 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) ApikeyV1alpha1 added in v0.4.0

func (c *Clientset) ApikeyV1alpha1() apikeyv1alpha1.ApikeyV1alpha1Interface

ApikeyV1alpha1 retrieves the ApikeyV1alpha1Client

func (*Clientset) ApplicationV1alpha1 added in v0.4.0

ApplicationV1alpha1 retrieves the ApplicationV1alpha1Client

func (*Clientset) ChildV1alpha1 added in v0.4.0

func (c *Clientset) ChildV1alpha1() childv1alpha1.ChildV1alpha1Interface

ChildV1alpha1 retrieves the ChildV1alpha1Client

func (*Clientset) DashboardV1alpha1

DashboardV1alpha1 retrieves the DashboardV1alpha1Client

func (*Clientset) Discovery

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

func (*Clientset) DowntimeV1alpha1

DowntimeV1alpha1 retrieves the DowntimeV1alpha1Client

func (*Clientset) IntegrationV1alpha1

IntegrationV1alpha1 retrieves the IntegrationV1alpha1Client

func (*Clientset) LogsV1alpha1

func (c *Clientset) LogsV1alpha1() logsv1alpha1.LogsV1alpha1Interface

LogsV1alpha1 retrieves the LogsV1alpha1Client

func (*Clientset) MetricV1alpha1

func (c *Clientset) MetricV1alpha1() metricv1alpha1.MetricV1alpha1Interface

MetricV1alpha1 retrieves the MetricV1alpha1Client

func (*Clientset) MonitorV1alpha1

func (c *Clientset) MonitorV1alpha1() monitorv1alpha1.MonitorV1alpha1Interface

MonitorV1alpha1 retrieves the MonitorV1alpha1Client

func (*Clientset) OrganizationV1alpha1 added in v0.4.0

OrganizationV1alpha1 retrieves the OrganizationV1alpha1Client

func (*Clientset) RoleV1alpha1

func (c *Clientset) RoleV1alpha1() rolev1alpha1.RoleV1alpha1Interface

RoleV1alpha1 retrieves the RoleV1alpha1Client

func (*Clientset) SecurityV1alpha1

SecurityV1alpha1 retrieves the SecurityV1alpha1Client

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) SyntheticsV1alpha1

SyntheticsV1alpha1 retrieves the SyntheticsV1alpha1Client

func (*Clientset) Tracker

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

func (*Clientset) UserV1alpha1

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

UserV1alpha1 retrieves the UserV1alpha1Client

func (*Clientset) WebhookV1alpha1 added in v0.4.0

func (c *Clientset) WebhookV1alpha1() webhookv1alpha1.WebhookV1alpha1Interface

WebhookV1alpha1 retrieves the WebhookV1alpha1Client

Jump to

Keyboard shortcuts

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