restconfig

package
v0.0.0-...-9cd5fb2 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 16 Imported by: 29

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientConfigFromFile

func ClientConfigFromFile(file, context string) clientcmd.ClientConfig

func Default

func Default() (*rest.Config, error)

func FromFile

func FromFile(file, context string) (*rest.Config, error)

func FromURLTokenAndScheme

func FromURLTokenAndScheme(serverURL, token string, scheme *runtime.Scheme) (*rest.Config, error)

func New

func New(scheme *runtime.Scheme) (*rest.Config, error)

func SetScheme

func SetScheme(cfg *rest.Config, scheme *runtime.Scheme) *rest.Config

func WaitFor

func WaitFor(ctx context.Context, cfg *rest.Config) error

Types

type AddToSchemeFunc

type AddToSchemeFunc func(scheme *runtime.Scheme) error

Jump to

Keyboard shortcuts

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