package versioned

import "k8s.io/apiextensions-apiserver/examples/client-go/pkg/client/clientset/versioned"

This package has the automatically generated clientset.

Index

Types

type Clientset

type Clientset struct {
	*discovery.DiscoveryClient
	// contains filtered or unexported fields
}

Clientset contains the clients for groups. Each group has exactly one version included in a Clientset.

func New

func New(c rest.Interface) *Clientset

New creates a new Clientset for the given RESTClient.

func NewForConfig

func NewForConfig(c *rest.Config) (*Clientset, error)

NewForConfig creates a new Clientset for the given config. If config's RateLimiter is not set and QPS and Burst are acceptable, NewForConfig will generate a rate-limiter in configShallowCopy. NewForConfig is equivalent to NewForConfigAndClient(c, httpClient), where httpClient was generated with rest.HTTPClientFor(c).

func NewForConfigAndClient

func NewForConfigAndClient(c *rest.Config, httpClient *http.Client) (*Clientset, error)

NewForConfigAndClient creates a new Clientset for the given config and http client. Note the http client provided takes precedence over the configured transport values. If config's RateLimiter is not set and QPS and Burst are acceptable, NewForConfigAndClient will generate a rate-limiter in configShallowCopy.

func NewForConfigOrDie

func NewForConfigOrDie(c *rest.Config) *Clientset

NewForConfigOrDie creates a new Clientset for the given config and panics if there is an error in the config.

func (*Clientset) CrV1

func (c *Clientset) CrV1() crv1.CrV1Interface

CrV1 retrieves the CrV1Client

func (*Clientset) Discovery

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

Discovery retrieves the DiscoveryClient

type Interface

type Interface interface {
	Discovery() discovery.DiscoveryInterface
	CrV1() crv1.CrV1Interface
}

Source Files

clientset.go doc.go

Directories

PathSynopsis
examples/client-go/pkg/client/clientset/versioned/fakeThis package has the automatically generated fake clientset.
examples/client-go/pkg/client/clientset/versioned/schemeThis package contains the scheme of the automatically generated clientset.
examples/client-go/pkg/client/clientset/versioned/typed
examples/client-go/pkg/client/clientset/versioned/typed/cr
examples/client-go/pkg/client/clientset/versioned/typed/cr/v1This package has the automatically generated typed clients.
examples/client-go/pkg/client/clientset/versioned/typed/cr/v1/fakePackage fake has the automatically generated clients.
Version
v0.24.8
Published
Nov 10, 2022
Platform
js/wasm
Imports
6 packages
Last checked
4 minutes ago

Tools for package owners.