secret

package
v1.22.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsCriticalErr

func IsCriticalErr(err error) bool

func NewCriticalErr

func NewCriticalErr(err error) error

Types

type Client

type Client interface {
	Name() string

	Update(ctx context.Context, cl client.Client, cr *api.PerconaServerMongoDB) error

	FillSecretData(ctx context.Context, data map[string][]byte) (bool, error)

	Close() error
}

type Provider

type Provider interface {
	NewClient() Client
}

type ProviderHandler

type ProviderHandler struct {
	// contains filtered or unexported fields
}

ProviderHandler manages all secret providers supported by the operator. On Update, it initializes or refreshes a secret-provider client for each cluster that has a provider configured.

func NewProviderHandler

func NewProviderHandler(providers ...Provider) *ProviderHandler

func (*ProviderHandler) FillSecretData

func (h *ProviderHandler) FillSecretData(ctx context.Context, cr *api.PerconaServerMongoDB, data map[string][]byte) (bool, error)

func (*ProviderHandler) Update

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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