kubelet

package module
v0.99.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 16 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 interface {
	Get(path string) ([]byte, error)
}

type ClientConfig

type ClientConfig struct {
	k8sconfig.APIConfig `mapstructure:",squash"`
	configtls.Config    `mapstructure:",squash"`
	// InsecureSkipVerify controls whether the client verifies the server's
	// certificate chain and host name.
	InsecureSkipVerify bool `mapstructure:"insecure_skip_verify"`
}

ClientConfig for a kubelet client for talking to a kubelet HTTP endpoint.

type ClientProvider

type ClientProvider interface {
	BuildClient() (Client, error)
}

func NewClientProvider

func NewClientProvider(endpoint string, cfg *ClientConfig, logger *zap.Logger) (ClientProvider, error)

Jump to

Keyboard shortcuts

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