contracts

package
v0.1.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider interface {
	// GetSecretPayload retrieves latest secret payload by external path.
	GetSecretPayload(ctx context.Context, key string) ([]byte, error)
	// CreateSecret stores secret metadata with a dedicated payload.
	CreateSecret(ctx context.Context, secret Secret, payload []byte) error
	// ListSecrets lists secret metadata without loading payload.
	ListSecrets(ctx context.Context) (map[string]Secret, error)
}

type Secret

type Secret struct {
	// VersionID is the latest external version identifier.
	VersionID string
	// Path is the full secret path in external storage.
	Path string
}

Jump to

Keyboard shortcuts

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