client

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetKubernetesClient

func GetKubernetesClient() (*kubernetes.Clientset, error)

GetKubernetesClient returns Kubernetes client to use for the worker.

Types

type Client

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

Client performs requests to the Kubrentes API server.

func New

func New() (*Client, error)

New returns a new instance of Client configured to connect to the API server.

func (*Client) GetMetrics

func (c *Client) GetMetrics(ctx context.Context) ([]byte, error)

GetMetrics requsts the /metrics endpoint from the server.

Jump to

Keyboard shortcuts

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