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: 70 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) AppV1alpha1

func (c *Clientset) AppV1alpha1() appv1alpha1.AppV1alpha1Interface

AppV1alpha1 retrieves the AppV1alpha1Client

func (*Clientset) CdnV1alpha1

func (c *Clientset) CdnV1alpha1() cdnv1alpha1.CdnV1alpha1Interface

CdnV1alpha1 retrieves the CdnV1alpha1Client

func (*Clientset) CertificateV1alpha1

CertificateV1alpha1 retrieves the CertificateV1alpha1Client

func (*Clientset) ContainerregistryV1alpha1

ContainerregistryV1alpha1 retrieves the ContainerregistryV1alpha1Client

func (*Clientset) CustomV1alpha1

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

CustomV1alpha1 retrieves the CustomV1alpha1Client

func (*Clientset) DatabaseV1alpha1

DatabaseV1alpha1 retrieves the DatabaseV1alpha1Client

func (*Clientset) Discovery

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

func (*Clientset) DomainV1alpha1

func (c *Clientset) DomainV1alpha1() domainv1alpha1.DomainV1alpha1Interface

DomainV1alpha1 retrieves the DomainV1alpha1Client

func (*Clientset) DropletV1alpha1

func (c *Clientset) DropletV1alpha1() dropletv1alpha1.DropletV1alpha1Interface

DropletV1alpha1 retrieves the DropletV1alpha1Client

func (*Clientset) FirewallV1alpha1

FirewallV1alpha1 retrieves the FirewallV1alpha1Client

func (*Clientset) FloatingipV1alpha1

FloatingipV1alpha1 retrieves the FloatingipV1alpha1Client

func (*Clientset) KubernetesV1alpha1

KubernetesV1alpha1 retrieves the KubernetesV1alpha1Client

func (*Clientset) LoadbalancerV1alpha1

LoadbalancerV1alpha1 retrieves the LoadbalancerV1alpha1Client

func (*Clientset) MonitorV1alpha1 added in v0.4.0

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

MonitorV1alpha1 retrieves the MonitorV1alpha1Client

func (*Clientset) ProjectV1alpha1

func (c *Clientset) ProjectV1alpha1() projectv1alpha1.ProjectV1alpha1Interface

ProjectV1alpha1 retrieves the ProjectV1alpha1Client

func (*Clientset) RecordV1alpha1

func (c *Clientset) RecordV1alpha1() recordv1alpha1.RecordV1alpha1Interface

RecordV1alpha1 retrieves the RecordV1alpha1Client

func (*Clientset) SpacesbucketV1alpha1

SpacesbucketV1alpha1 retrieves the SpacesbucketV1alpha1Client

func (*Clientset) SshV1alpha1

func (c *Clientset) SshV1alpha1() sshv1alpha1.SshV1alpha1Interface

SshV1alpha1 retrieves the SshV1alpha1Client

func (*Clientset) TagV1alpha1

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

TagV1alpha1 retrieves the TagV1alpha1Client

func (*Clientset) Tracker

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

func (*Clientset) VolumeV1alpha1

func (c *Clientset) VolumeV1alpha1() volumev1alpha1.VolumeV1alpha1Interface

VolumeV1alpha1 retrieves the VolumeV1alpha1Client

func (*Clientset) VpcV1alpha1

func (c *Clientset) VpcV1alpha1() vpcv1alpha1.VpcV1alpha1Interface

VpcV1alpha1 retrieves the VpcV1alpha1Client

Jump to

Keyboard shortcuts

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