config

package
v1.31.3-0...-b1489ee Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultPodManifestPath = "pod-manifests"
)

Variables

This section is empty.

Functions

func APIServers

func APIServers(ctx context.Context, node *config.Node, proxy proxy.Proxy) []string

APIServers returns a list of apiserver endpoints, suitable for seeding client loadbalancer configurations. This function will block until it can return a populated list of apiservers, or if the remote server returns an error (indicating that it does not support this functionality).

func Get

func Get(ctx context.Context, agent cmds.Agent, proxy proxy.Proxy) (*config.Node, error)

Get returns a pointer to a completed Node configuration struct, containing a merging of the local CLI configuration with settings from the server. Node configuration includes client certificates, which requires node password verification, so this is somewhat computationally expensive on the server side, and is retried with jitter to avoid having clients hammer on the server at fixed periods. A call to this will bock until agent configuration is successfully returned by the server, or the context is cancelled.

func Request

func Request(path string, info *clientaccess.Info, requester HTTPRequester) ([]byte, error)

Types

type HTTPRequester

type HTTPRequester func(u string, client *http.Client, username, password, token string) ([]byte, error)

Jump to

Keyboard shortcuts

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