credentialplugin

package
v1.35.1 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2026 License: Apache-2.0 Imports: 13 Imported by: 5

Documentation

Overview

Package credentialplugin provides the use-cases for running as a client-go credentials plugin.

See https://kubernetes.io/docs/reference/access-authn-authz/authentication/#client-go-credential-plugins

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type GetToken

type GetToken struct {
	Authentication         authentication.Interface
	TokenCacheRepository   repository.Interface
	CredentialPluginReader credentialpluginreader.Interface
	CredentialPluginWriter credentialpluginwriter.Interface
	Logger                 logger.Interface
	Clock                  clock.Interface
}

func (*GetToken) Do

func (u *GetToken) Do(ctx context.Context, in Input) error

type Input added in v1.14.3

type Input struct {
	Provider         oidc.Provider
	ForceRefresh     bool
	TokenCacheConfig tokencache.Config
	GrantOptionSet   authentication.GrantOptionSet
	TLSClientConfig  tlsclientconfig.Config
}

Input represents an input DTO of the GetToken use-case.

type Interface added in v1.14.3

type Interface interface {
	Do(ctx context.Context, in Input) error
}

Jump to

Keyboard shortcuts

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