Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store interface { io.Closer // Get gets a device snapshot Get(id devicesnapshot.ID) (*devicesnapshot.DeviceSnapshot, error) // Create creates a new device snapshot Create(snapshot *devicesnapshot.DeviceSnapshot) error // Update updates an existing device snapshot Update(snapshot *devicesnapshot.DeviceSnapshot) error // Delete deletes a device snapshot Delete(snapshot *devicesnapshot.DeviceSnapshot) error // List lists device snapshot List(chan<- *devicesnapshot.DeviceSnapshot) (stream.Context, error) // Watch watches the device snapshot store for changes Watch(chan<- stream.Event) (stream.Context, error) // Store stores a snapshot Store(snapshot *devicesnapshot.Snapshot) error // Load loads a snapshot Load(deviceID device.VersionedID) (*devicesnapshot.Snapshot, error) // Load loads all snapshots LoadAll(ch chan<- *devicesnapshot.Snapshot) (stream.Context, error) // Watch watches the snapshot store for changes WatchAll(chan<- stream.Event) (stream.Context, error) }
Store stores DeviceChanges
func NewAtomixStore ¶
NewAtomixStore returns a new persistent Store
func NewLocalStore ¶
NewLocalStore returns a new local device snapshot store
Click to show internal directories.
Click to hide internal directories.