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.
Click to show internal directories.
Click to hide internal directories.