credentialplugin

package
v1.30.1 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 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
	Writer               writer.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
	TokenCacheDir   string
	GrantOptionSet  authentication.GrantOptionSet
	TLSClientConfig tlsclientconfig.Config
	ForceRefresh    bool
	UseAccessToken  bool
}

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