Documentation ¶
Index ¶
- type Client
- func (c *Client) CrdClient() crdclientset.Interface
- func (c *Client) CtrlRuntimeClient() client.Client
- func (c *Client) HelmClient() *helmclient.Client
- func (c *Client) KarmadaClient() karmadaclientset.Interface
- func (c *Client) KubeClient() kubeclient.Interface
- func (c *Client) NewClusterCRDClientset(clusterName string) (crdclientset.Interface, error)
- func (c *Client) NewClusterClientSet(clusterName string) (kubeclient.Interface, error)
- func (c *Client) NewClusterHelmClient(clusterName string) (helmclient.Interface, error)
- func (c *Client) PromClient() promclient.Interface
- func (c *Client) UpdateResource(obj interface{}) error
- type RESTClientGetter
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 (*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
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
Click to show internal directories.
Click to hide internal directories.