client

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package client is a wrapper for interacting with Pinniped's CredentialRequest API.

Index

Constants

This section is empty.

Variables

View Source
var ErrLoginFailed = errors.New("login failed")

ErrLoginFailed is returned by ExchangeToken when the server rejects the login request.

Functions

func ExchangeToken

func ExchangeToken(ctx context.Context, namespace string, authenticator corev1.TypedLocalObjectReference, token string, caBundle string, apiEndpoint string) (*clientauthenticationv1beta1.ExecCredential, error)

ExchangeToken exchanges an opaque token using the Pinniped TokenCredentialRequest API, returning a client-go ExecCredential valid on the target cluster.

Types

This section is empty.

Jump to

Keyboard shortcuts

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