kubernetes

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Overview

Package kubernetes provides wrappers for Kubernetes secret access

Package kubernetes allows to fetch secrets from Kubernetes Secrets API using REST.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewK8sFileBackend added in v1.5.0

func NewK8sFileBackend(bc map[string]interface{}) (*file.TextFileBackend, error)

NewK8sFileBackend returns a new Kubernetes file-based secrets backend

Types

type SecretsBackend

type SecretsBackend struct {
	Config     SecretsBackendConfig
	HTTPClient *http.Client
	K8sConfig  k8sConfig
}

SecretsBackend represents backend for Kubernetes Secrets

func (*SecretsBackend) GetSecretOutput

func (b *SecretsBackend) GetSecretOutput(ctx context.Context, secretString string) secret.Output

GetSecretOutput retrieves a secret from Kubernetes Secrets

type SecretsBackendConfig

type SecretsBackendConfig struct {
	TokenPath string `mapstructure:"token_path"` // optional
	CAPath    string `mapstructure:"ca_path"`    // optional
	APIServer string `mapstructure:"api_server"` // optional
}

SecretsBackendConfig is the configuration for a Kubernetes Secrets backend

Jump to

Keyboard shortcuts

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