client

package
v2.13.14 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewComponentDiscoverer

func NewComponentDiscoverer(
	component controlplane.Component,
	logger *logrus.Logger,
	nodeIP string,
	podsFetcher data.FetchFunc,
	k8sClient client.Kubernetes,
) client.Discoverer

NewComponentDiscoverer returns a `Discoverer` that will find the control plane components that are running on this node.

Types

type ControlPlaneComponentClient

type ControlPlaneComponentClient struct {
	IsComponentRunningOnNode bool

	PodName          string
	InsecureFallback bool
	// contains filtered or unexported fields
}

ControlPlaneComponentClient implements Client interface.

func (*ControlPlaneComponentClient) Do

func (c *ControlPlaneComponentClient) Do(method, urlPath string) (*http.Response, error)

func (*ControlPlaneComponentClient) NodeIP

func (c *ControlPlaneComponentClient) NodeIP() string

Jump to

Keyboard shortcuts

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