kubelet

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2021 License: Apache-2.0 Imports: 8 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
}

Client wraps methods exposed by the kubelet read-only API.

func NewClient

func NewClient(addr string) (*Client, error)

NewClient creates a kubelet client on the read-only port.

func (*Client) Pods

func (c *Client) Pods(ctx context.Context) ([]v1.Pod, error)

Pods queries the read-only kubelet API for a list of pods running on that node.

Jump to

Keyboard shortcuts

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