credentialplugin

package
v1.21.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2020 License: Apache-2.0 Imports: 8 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 tokencache.Interface
	NewCertPool          certpool.NewFunc
	Writer               credentialpluginwriter.Interface
	Logger               logger.Interface
}

func (*GetToken) Do

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

type Input added in v1.14.3

type Input struct {
	IssuerURL      string
	ClientID       string
	ClientSecret   string
	ExtraScopes    []string // optional
	CACertFilename string   // optional
	CACertData     string   // optional
	SkipTLSVerify  bool
	TokenCacheDir  string
	GrantOptionSet authentication.GrantOptionSet
}

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
}

Directories

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

Jump to

Keyboard shortcuts

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