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: 55 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) AddonV1alpha1

func (c *Clientset) AddonV1alpha1() addonv1alpha1.AddonV1alpha1Interface

AddonV1alpha1 retrieves the AddonV1alpha1Client

func (*Clientset) BusinessV1alpha1

BusinessV1alpha1 retrieves the BusinessV1alpha1Client

func (*Clientset) Discovery

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

func (*Clientset) EscalationV1alpha1

EscalationV1alpha1 retrieves the EscalationV1alpha1Client

func (*Clientset) EventV1alpha1

func (c *Clientset) EventV1alpha1() eventv1alpha1.EventV1alpha1Interface

EventV1alpha1 retrieves the EventV1alpha1Client

func (*Clientset) ExtensionV1alpha1

ExtensionV1alpha1 retrieves the ExtensionV1alpha1Client

func (*Clientset) MaintenanceV1alpha1

MaintenanceV1alpha1 retrieves the MaintenanceV1alpha1Client

func (*Clientset) ResponseV1alpha1

ResponseV1alpha1 retrieves the ResponseV1alpha1Client

func (*Clientset) RulesetV1alpha1

func (c *Clientset) RulesetV1alpha1() rulesetv1alpha1.RulesetV1alpha1Interface

RulesetV1alpha1 retrieves the RulesetV1alpha1Client

func (*Clientset) ScheduleV1alpha1

ScheduleV1alpha1 retrieves the ScheduleV1alpha1Client

func (*Clientset) ServiceV1alpha1

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

ServiceV1alpha1 retrieves the ServiceV1alpha1Client

func (*Clientset) SlackV1alpha1 added in v0.4.0

func (c *Clientset) SlackV1alpha1() slackv1alpha1.SlackV1alpha1Interface

SlackV1alpha1 retrieves the SlackV1alpha1Client

func (*Clientset) TagV1alpha1 added in v0.4.0

func (c *Clientset) TagV1alpha1() tagv1alpha1.TagV1alpha1Interface

TagV1alpha1 retrieves the TagV1alpha1Client

func (*Clientset) TeamV1alpha1

func (c *Clientset) TeamV1alpha1() teamv1alpha1.TeamV1alpha1Interface

TeamV1alpha1 retrieves the TeamV1alpha1Client

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.5.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