k8shelpers

package
v0.0.0-...-60373ff Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: Apache-2.0 Imports: 14 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure

func Configure(cfg *config.Config) (*rest.Config, error)

Configure kubernetes

func MustConfigure

func MustConfigure(cfg *config.Config) *rest.Config

Configure kubernetes or die

Types

type BearerTokenRoundTripper

type BearerTokenRoundTripper struct {
	Transport http.RoundTripper
}

func NewBearerTokenRoundTripper

func NewBearerTokenRoundTripper(transport http.RoundTripper) *BearerTokenRoundTripper

func (*BearerTokenRoundTripper) RoundTrip

func (b *BearerTokenRoundTripper) RoundTrip(req *http.Request) (*http.Response, error)

type HelperService

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

func NewHelperService

func NewHelperService(cfg *rest.Config, authMode config.AuthMode) *HelperService

type Key

type Key int
const K8STokenCtxKey Key = iota

type Options

type Options struct {
	AuthMode   config.AuthMode
	KubeConfig string
}

Jump to

Keyboard shortcuts

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