client

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: Apache-2.0 Imports: 5 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Clientset                  *kubernetes.Clientset
	Restclientset              *kubernetes.Clientset
	Namespace                  string
	Restconfig                 *rest.Config
	Kubeconfig                 clientcmd.ClientConfig
	TimeoutTaskInSec           int
	NumberMaxOfAttemptsPerTask int
	QPS                        float32 // Queries per second
	Burst                      int     // Suddently increase of call to API

}

Client struct contains all info about client to connect into the cluster

func (*Client) Connect

func (client *Client) Connect() (*Client, error)

Connect will connect to specific Cluster read from kubeconfig

Args:

Returns:

  • Client struct

func (*Client) KubeClientFromConfig

func (client *Client) KubeClientFromConfig() (*Client, error)

KubeClientFromConfig will provide the REST interface to cluster

Args:

Returns:

  • Client struct or error

Jump to

Keyboard shortcuts

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