client

package
v0.22.2 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Getter

type Getter struct {
	// contains filtered or unexported fields
}

Composes the set of values necessary for obtaining a REST client config

func NewGetter

func NewGetter(dir *dirs.TiltDevDir, config TiltClientConfig) *Getter

func (*Getter) ToDiscoveryClient

func (f *Getter) ToDiscoveryClient() (discovery.CachedDiscoveryInterface, error)

ToDiscoveryClient implements RESTClientGetter. Expects the AddFlags method to have been called. Returns a CachedDiscoveryInterface using a computed RESTConfig.

func (*Getter) ToRESTConfig

func (f *Getter) ToRESTConfig() (*rest.Config, error)

ToRESTConfig implements RESTClientGetter. Returns a REST client configuration based on a provided path to a .kubeconfig file, loading rules, and config flag overrides. Expects the AddFlags method to have been called.

func (*Getter) ToRESTMapper

func (f *Getter) ToRESTMapper() (meta.RESTMapper, error)

func (*Getter) ToRawKubeConfigLoader

func (f *Getter) ToRawKubeConfigLoader() clientcmd.ClientConfig

ToRawKubeConfigLoader binds config flag values to config overrides Returns an interactive clientConfig if the password flag is enabled, or a non-interactive clientConfig otherwise.

type TiltClientConfig added in v0.19.5

type TiltClientConfig clientcmd.ClientConfig

func ProvideClientConfig added in v0.19.5

func ProvideClientConfig(apiServerName model.APIServerName, configAccess clientcmd.ConfigAccess) (TiltClientConfig, error)

Uses the kubernetes config-loading library to create a client config for the given server name.

Jump to

Keyboard shortcuts

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