authenticator

package
v2.18.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadKubeConfig

func LoadKubeConfig(kubeConfig string) clientcmd.ClientConfig

Types

type ExecCredentialsResolver

type ExecCredentialsResolver interface {
	Resolve(
		ctx context.Context,
		execConfig *clientcmd_api.ExecConfig,
	) ([]byte, error)
}

type Service

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

func NewService

func NewService(
	kubeClientConfig clientcmd.ClientConfig,
) *Service

func (Service) GetExecCredentials

func (a Service) GetExecCredentials(ctx context.Context, contextName string) ([]byte, error)

Directories

Path Synopsis
Package mock_authenticator is a generated GoMock package.
Package mock_authenticator is a generated GoMock package.

Jump to

Keyboard shortcuts

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