authenticationtoken

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Overview

Package authenticationtoken contains shared utility methods for the management of the authentication token.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAuthToken

func GetAuthToken(ctx context.Context, clusterID string, k8sClient client.Client) (string, error)

GetAuthToken loads the auth token for a foreignCluster with a given clusterID.

func StoreInSecret

func StoreInSecret(ctx context.Context, clientset kubernetes.Interface,
	clusterID, authToken, liqoNamespace string) error

StoreInSecret stores an authentication token for a given remote cluster in a secret, or updates it if it already exists.

Types

This section is empty.

Jump to

Keyboard shortcuts

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