credentials

package
v0.1.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package credentials handles cloudscale.ch API credential retrieval.

Index

Constants

View Source
const TokenKey = "token"

TokenKey is the key in the Secret data that holds the API token.

Variables

This section is empty.

Functions

func GetToken

func GetToken(ctx context.Context, c client.Client, secretRef corev1.ObjectReference, clusterNamespace string) (string, error)

GetToken retrieves the cloudscale.ch API token from a Secret. If secretRef.Namespace is empty, clusterNamespace is used.

Types

This section is empty.

Jump to

Keyboard shortcuts

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