package
0.0.0-20250312152250-ea85ec9d2454
Repository: https://github.com/snapcore/snapd.git
Documentation: pkg.go.dev

# Functions

NewJSONDatabag returns a Databag implementation that stores data in JSON.
NewJSONSchema returns a Schema able to validate a JSONDatabag's data.
No description provided by the author
NewSchema returns a new confdb schema with the specified views (and their rules) and storage schema.
ParseSchema parses a JSON confdb schema and returns a Schema that can be used to validate storage.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Only the operator's keys can be used to sign the messages.
Messages can be signed on behalf of the operator by the store.
No description provided by the author

# Variables

No description provided by the author
No description provided by the author

# Structs

No description provided by the author
Control holds the delegations done by the device to operators.
JSONSchema is the Schema implementation corresponding to JSONDatabag and it's able to validate its data.
No description provided by the author
Schema holds a set of views that describe how the confdb can be accessed as well as a schema for the storage.
StorageSchema represents a confdb storage schema and can be used to validate the storage.
TODO: keep a list of expected types (to support alternatives), an actual type/value and then optional unmet constraints for the expected types.
View carries access rules for a particular view in a confdb schema.

# Interfaces

Databag controls access to the confdb data storage.
DatabagSchema takes in data from the Databag and validates that it's valid and could be committed.

# Type aliases

JSONDatabag is a simple Databag implementation that keeps JSON in-memory.
No description provided by the author
No description provided by the author