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: 58 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) AlertV1alpha1

func (c *Clientset) AlertV1alpha1() alertv1alpha1.AlertV1alpha1Interface

AlertV1alpha1 retrieves the AlertV1alpha1Client

func (*Clientset) ApikeyV1alpha1 added in v0.5.0

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

ApikeyV1alpha1 retrieves the ApikeyV1alpha1Client

func (*Clientset) BuiltinV1alpha1

func (c *Clientset) BuiltinV1alpha1() builtinv1alpha1.BuiltinV1alpha1Interface

BuiltinV1alpha1 retrieves the BuiltinV1alpha1Client

func (*Clientset) CloudV1alpha1 added in v0.5.0

func (c *Clientset) CloudV1alpha1() cloudv1alpha1.CloudV1alpha1Interface

CloudV1alpha1 retrieves the CloudV1alpha1Client

func (*Clientset) DashboardV1alpha1

DashboardV1alpha1 retrieves the DashboardV1alpha1Client

func (*Clientset) DataV1alpha1

func (c *Clientset) DataV1alpha1() datav1alpha1.DataV1alpha1Interface

DataV1alpha1 retrieves the DataV1alpha1Client

func (*Clientset) Discovery

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

func (*Clientset) FolderV1alpha1

func (c *Clientset) FolderV1alpha1() folderv1alpha1.FolderV1alpha1Interface

FolderV1alpha1 retrieves the FolderV1alpha1Client

func (*Clientset) LibraryV1alpha1 added in v0.5.0

func (c *Clientset) LibraryV1alpha1() libraryv1alpha1.LibraryV1alpha1Interface

LibraryV1alpha1 retrieves the LibraryV1alpha1Client

func (*Clientset) MachineV1alpha1 added in v0.5.0

func (c *Clientset) MachineV1alpha1() machinev1alpha1.MachineV1alpha1Interface

MachineV1alpha1 retrieves the MachineV1alpha1Client

func (*Clientset) OrganizationV1alpha1

OrganizationV1alpha1 retrieves the OrganizationV1alpha1Client

func (*Clientset) PlaylistV1alpha1 added in v0.5.0

PlaylistV1alpha1 retrieves the PlaylistV1alpha1Client

func (*Clientset) ReportV1alpha1 added in v0.5.0

func (c *Clientset) ReportV1alpha1() reportv1alpha1.ReportV1alpha1Interface

ReportV1alpha1 retrieves the ReportV1alpha1Client

func (*Clientset) RoleV1alpha1

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

RoleV1alpha1 retrieves the RoleV1alpha1Client

func (*Clientset) SyntheticV1alpha1

SyntheticV1alpha1 retrieves the SyntheticV1alpha1Client

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

Jump to

Keyboard shortcuts

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