client

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(rest genericclioptions.RESTClientGetter) (*Client, error)

func (*Client) CrdClient

func (c *Client) CrdClient() crdclientset.Interface

func (*Client) CtrlRuntimeClient added in v0.5.0

func (c *Client) CtrlRuntimeClient() client.Client

func (*Client) HelmClient

func (c *Client) HelmClient() *helmclient.Client

func (*Client) KarmadaClient

func (c *Client) KarmadaClient() karmadaclientset.Interface

func (*Client) KubeClient

func (c *Client) KubeClient() kubeclient.Interface

func (*Client) NewClusterCRDClientset added in v0.2.0

func (c *Client) NewClusterCRDClientset(clusterName string) (crdclientset.Interface, error)

func (*Client) NewClusterClientSet

func (c *Client) NewClusterClientSet(clusterName string) (kubeclient.Interface, error)

func (*Client) NewClusterHelmClient added in v0.2.0

func (c *Client) NewClusterHelmClient(clusterName string) (helmclient.Interface, error)

func (*Client) PromClient

func (c *Client) PromClient() promclient.Interface

func (*Client) UpdateResource added in v0.2.0

func (c *Client) UpdateResource(obj interface{}) error

type RESTClientGetter added in v0.2.0

type RESTClientGetter struct {
	// contains filtered or unexported fields
}

RESTClientGetter defines the values of a helm REST client.

func NewRESTClientGetter added in v0.2.0

func NewRESTClientGetter(restConfig *rest.Config) *RESTClientGetter

NewRESTClientGetter returns a RESTClientGetter using the provided 'restConfig'.

source: https://github.com/helm/helm/issues/6910#issuecomment-601277026

func (*RESTClientGetter) ToDiscoveryClient added in v0.2.0

func (c *RESTClientGetter) ToDiscoveryClient() (discovery.CachedDiscoveryInterface, error)

ToDiscoveryClient returns a CachedDiscoveryInterface that can be used as a discovery client.

func (*RESTClientGetter) ToRESTConfig added in v0.2.0

func (c *RESTClientGetter) ToRESTConfig() (*rest.Config, error)

ToRESTConfig returns a REST config build from a given kubeconfig

func (*RESTClientGetter) ToRESTMapper added in v0.2.0

func (c *RESTClientGetter) ToRESTMapper() (meta.RESTMapper, error)

func (*RESTClientGetter) ToRawKubeConfigLoader added in v0.2.0

func (c *RESTClientGetter) ToRawKubeConfigLoader() clientcmd.ClientConfig

Jump to

Keyboard shortcuts

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