clientset

package
v0.24.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 9 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterClientset

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

ClusterClientset contains the clients for groups.

func NewForConfig

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

NewForConfig creates a new ClusterClientset 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) (*ClusterClientset, error)

NewForConfigAndClient creates a new ClusterClientset 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) *ClusterClientset

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

func (*ClusterClientset) Cluster

func (c *ClusterClientset) Cluster(clusterPath logicalcluster.Path) client.Interface

Cluster scopes this clientset to one cluster.

func (*ClusterClientset) Discovery

Discovery retrieves the DiscoveryClient

func (*ClusterClientset) WildwestV1alpha1

WildwestV1alpha1 retrieves the WildwestV1alpha1ClusterClient.

type ClusterInterface

type ClusterInterface interface {
	Cluster(logicalcluster.Path) client.Interface
	Discovery() discovery.DiscoveryInterface
	WildwestV1alpha1() wildwestv1alpha1.WildwestV1alpha1ClusterInterface
}

Directories

Path Synopsis
typed

Jump to

Keyboard shortcuts

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