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 ¶
This section is empty.
Types ¶
type Cache ¶
func NewMockCache ¶
func NewMockCache() Cache
type Config ¶
type Config interface {
Set(key, value string, confType configType) error
SetDocument(key string, value any, confType configType) error
Get(key string) (map[string]any, error)
GetAll() (map[string]any, error)
Unset(key string, confType configType) error
}
func NewMockConfig ¶
type SnapctlStorage ¶
type SnapctlStorage struct{}
func NewSnapctlStorage ¶
func NewSnapctlStorage() *SnapctlStorage
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
Click to show internal directories.
Click to hide internal directories.