kubelet

package
v0.0.0-...-cc7f265 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	GetPods(ctx context.Context) ([]corev1.Pod, error)
}

func NewClient

func NewClient(opts ...ClientOption) (Client, error)

type ClientOption

type ClientOption func(*kubeletClient)

func WithAccessToken

func WithAccessToken(token string) ClientOption

func WithAddress

func WithAddress(address string) ClientOption

func WithCAPEMs

func WithCAPEMs(caPEMs []byte) ClientOption

func WithClientCertPEM

func WithClientCertPEM(pem []byte) ClientOption

func WithHTTPClient

func WithHTTPClient(client HTTPClient) ClientOption

func WithSkipCertVerify

func WithSkipCertVerify() ClientOption

type HTTPClient

type HTTPClient interface {
	Do(req *http.Request) (*http.Response, error)
}

Jump to

Keyboard shortcuts

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