storage

package
v1.0.0-beta.24 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2025 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PackageConfig configType = "package"
	EngineConfig  configType = "engine"
	UserConfig    configType = "user"
)

config types

Variables

View Source
var ErrorNotFound = fmt.Errorf("not found")

Functions

func NewCache

func NewCache() *cache

func NewConfig

func NewConfig() *config

Types

type SnapctlStorage

type SnapctlStorage struct{}

func NewSnapctlStorage

func NewSnapctlStorage() *SnapctlStorage

func (*SnapctlStorage) Get

func (s *SnapctlStorage) Get(key string) (map[string]any, error)

func (*SnapctlStorage) Set

func (s *SnapctlStorage) Set(key, value string) error

func (*SnapctlStorage) SetDocument

func (s *SnapctlStorage) SetDocument(key string, value any) error

func (*SnapctlStorage) Unset

func (s *SnapctlStorage) Unset(key string) error

Jump to

Keyboard shortcuts

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