state

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2026 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileStateAdapter

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

FileStateAdapter persists state to a JSON file with atomic writes.

func NewFileStateAdapter

func NewFileStateAdapter(path string) *FileStateAdapter

NewFileStateAdapter creates a new file-based state adapter.

func (*FileStateAdapter) GetEnvironment

func (a *FileStateAdapter) GetEnvironment(ctx context.Context, name string) (*domain.EnvironmentEntry, error)

func (*FileStateAdapter) Load

func (*FileStateAdapter) RemoveEnvironment

func (a *FileStateAdapter) RemoveEnvironment(ctx context.Context, name string) error

func (*FileStateAdapter) Save

func (a *FileStateAdapter) Save(_ context.Context, state *domain.State) error

func (*FileStateAdapter) SetEnvironment

func (a *FileStateAdapter) SetEnvironment(ctx context.Context, name string, entry *domain.EnvironmentEntry) error

func (*FileStateAdapter) UpdateSnapshot

func (a *FileStateAdapter) UpdateSnapshot(_ context.Context, dbName string, info *domain.SnapshotUpdate) error

Jump to

Keyboard shortcuts

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