kubelet

package
v0.14.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2021 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package kubelet provides minimal client for the kubelet API.

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 is a kubelet API client.

Client can only talk to the local kubelet on the same node.

func NewClient

func NewClient(nodename string, clientCert, clientKey, caPEM []byte) (*Client, error)

NewClient creates new kubelet API client.

func (*Client) Pods

func (c *Client) Pods(ctx context.Context) (*v1.PodList, error)

Pods returns list of pods running on the kubelet.

Jump to

Keyboard shortcuts

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