Help us shape the future of Go! Take the 2026 Go Developer Survey

store

package
v1.10.2 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package store provides storage interfaces and implementations for staging.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileStore

type FileStore interface {
	// contains filtered or unexported methods
}

FileStore combines drain and write operations for file storage.

type ReadOperator

type ReadOperator interface {
	// GetEntry retrieves the staged entry identified by key.
	GetEntry(ctx context.Context, service staging.Service, key staging.EntryKey) (*staging.Entry, error)
	// GetTag retrieves the staged tag changes identified by key.
	GetTag(ctx context.Context, service staging.Service, key staging.EntryKey) (*staging.TagEntry, error)
	// ListEntries returns all staged entries for a service, keyed by EntryKey.
	ListEntries(ctx context.Context, service staging.Service) (map[staging.Service]map[staging.EntryKey]staging.Entry, error)
	// ListTags returns all staged tag changes for a service, keyed by EntryKey.
	ListTags(ctx context.Context, service staging.Service) (map[staging.Service]map[staging.EntryKey]staging.TagEntry, error)
}

ReadOperator provides read-only access to individual staging entries. Items are addressed by staging.EntryKey (name + namespace); the namespace is the App Configuration label axis (empty for every other provider), and it is part of the key for both entries and tags so a namespaced setting is never resolved under the wrong namespace.

type ReadWriteOperator

type ReadWriteOperator interface {
	ReadOperator
	// contains filtered or unexported methods
}

ReadWriteOperator combines read and write access to staging entries.

type WorkingStore added in v1.8.0

type WorkingStore interface {
	// contains filtered or unexported methods
}

WorkingStore is the working-area surface the export and import use cases rely on: a bulk Drain for the export snapshot, per-key writes to clear exactly the exported keys (each re-read under its own lock), and the atomic Update read-modify-write used to reconcile an import without clobbering a concurrent stage.

Directories

Path Synopsis
Package file provides file-based staging storage.
Package file provides file-based staging storage.
internal/crypt
Package crypt provides encryption for staging files.
Package crypt provides encryption for staging files.
internal/keyprovider
Package keyprovider resolves the AES-256 data key used to encrypt the working staging state files (param.json/secret.json).
Package keyprovider resolves the AES-256 data key used to encrypt the working staging state files (param.json/secret.json).
Package testutil provides test utilities for staging package.
Package testutil provides test utilities for staging package.

Jump to

Keyboard shortcuts

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