Discover Packages
github.com/Viridian-Inc/cloudmock
pkg
snapshot
package
Version:
v1.10.0
Opens a new window with list of versions in this module.
Published: Aug 4, 2026
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Export serialises the state of all Snapshotable services in the registry
into a single JSON document.
Import restores service state from a JSON document previously produced by Export.
Services present in the file but not registered in the registry are silently skipped.
type StateFile struct {
Version int `json:"version"`
ExportedAt string `json:"exported_at"`
Services map[string ]json .RawMessage `json:"services"`
}
StateFile is the top-level structure of a cloudmock state snapshot.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.