backends

package
v0.6.0-1a Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2026 License: MIT Imports: 6 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package backends holds the fixed set of state backends and encrypters a factory can use. An operator selects one by bare name in a config's state: block (@backend, @key-source), and the resolver looks the name up here.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Backends

func Backends() map[string]sdkstate.BackendType

Backends returns the state backends keyed by the bare name an operator selects with @backend. Names are unique by construction: this is one map literal, so a duplicate is a compile error.

func Encrypters

func Encrypters() map[string]sdkencrypt.EncrypterType

Encrypters returns the state encrypters keyed by the bare name an operator selects with @key-source.

Types

type EnvKeyConfig

type EnvKeyConfig struct {
	EnvVar cfg.String
}

EnvKeyConfig is the operator-facing body under `encryption: { @key-source: env-key ... }`.

type LocalBackendConfig

type LocalBackendConfig struct {
	Path cfg.String
}

LocalBackendConfig is the operator-facing body under `state: { @backend: local ... }`.

Jump to

Keyboard shortcuts

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