6ec03d6745
The "Capability" type defines DataScope and ConnectivityScope fields, but their value was set from consts in the datastore package, which required importing that package and its dependencies for the consts only. This patch: - Moves the consts to a separate "scope" package - Adds aliases for the consts in the datastore package. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
12 lines
362 B
Go
12 lines
362 B
Go
package scope
|
|
|
|
// Data scopes.
|
|
const (
|
|
// Local indicates to store the KV object in local datastore such as boltdb
|
|
Local = "local"
|
|
// Global indicates to store the KV object in global datastore
|
|
Global = "global"
|
|
// Swarm is not indicating a datastore location. It is defined here
|
|
// along with the other two scopes just for consistency.
|
|
Swarm = "swarm"
|
|
)
|