secrets

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProviderLocal = "local"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalProvider

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

func NewLocalProvider

func NewLocalProvider(tx *gorm.DB, encryptor crypto.Encryptor, record *models.Secret) *LocalProvider

func (*LocalProvider) Load

func (p *LocalProvider) Load(ctx context.Context) (map[string]string, error)

type Options

type Options struct {
	CanvasID   uuid.UUID
	SecretName string
	Encryptor  crypto.Encryptor
}

type Provider

type Provider interface {
	Load(ctx context.Context) (map[string]string, error)
}

func NewProvider

func NewProvider(tx *gorm.DB, encryptor crypto.Encryptor, name, domainType string, domainID uuid.UUID) (Provider, error)

Jump to

Keyboard shortcuts

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