kubernetes

package
v0.0.0-...-6dcaeb9 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Overview

Package kubernetes provides the kubernetes secrets backend.

Index

Constants

View Source
const (
	// BackendType is the type of the Kubernetes secrets backend.
	BackendType = "kubernetes"
)

Variables

View Source
var NewCaas = newCaas

NewCaas is patched for testing.

Functions

func BuiltInConfig

func BuiltInConfig(cloudSpec cloudspec.CloudSpec) (*provider.BackendConfig, error)

BuiltInConfig returns the config needed to create a k8s secrets backend using the same namespace as the specified model.

func BuiltInName

func BuiltInName(modelName string) string

BuiltInName returns the backend name for the k8s in-model backend.

func IsBuiltInName

func IsBuiltInName(backendName string) bool

IsBuiltInName returns true of the backend name is the built-in one.

func NewProvider

func NewProvider() provider.SecretBackendProvider

NewProvider returns a Kubernetes secrets provider.

Types

type Broker

type Broker interface {
	caas.SecretsBackend
	caas.SecretsProvider
	Version() (ver *version.Number, err error)
}

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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