secrets

package
v0.43.2 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SecretProvider

type SecretProvider interface {
	GetSecretCredentials(ctx context.Context, tenantID model.GlobalID) (*sm.SecretStore, error)
	GetSecretValue(ctx context.Context, tenantID model.GlobalID, secretKey string) (string, error)
}

type TenantProvider

type TenantProvider interface {
	GetTenant(context.Context, *sm.TenantInfo) (*sm.Tenant, error)
}

type TenantSecrets

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

TenantSecrets provides backward compatibility with existing code

func NewTenantSecrets

func NewTenantSecrets(tp TenantProvider, logger zerolog.Logger) *TenantSecrets

NewTenantSecrets creates a new TenantSecrets instance for backward compatibility

func (*TenantSecrets) GetSecretCredentials

func (ts *TenantSecrets) GetSecretCredentials(ctx context.Context, tenantID model.GlobalID) (*sm.SecretStore, error)

GetSecretCredentials gets the secret store configuration for a tenant (backward compatibility)

func (*TenantSecrets) GetSecretValue added in v0.42.0

func (ts *TenantSecrets) GetSecretValue(ctx context.Context, tenantID model.GlobalID, secretKey string) (string, error)

GetSecretValue implements SecretProvider interface (backward compatibility)

Jump to

Keyboard shortcuts

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