moby/libnetwork/scope/scope.go
Sebastiaan van Stijn 6ec03d6745
libnetwork: move datastore Scope consts to libnetwork/scope
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>
2023-07-28 21:56:48 +02:00

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"
)