package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev
# Functions
DefaultSystemZoneConfig is the default zone configuration used when no custom config has been specified.
DefaultSystemZoneConfigRef is the default zone configuration used when no custom config has been specified.
DefaultZoneConfig is the default zone configuration used when no custom config has been specified.
DefaultZoneConfigRef is the default zone configuration used when no custom config has been specified.
IsNamedZoneID returns true if the given ID is one of the pseudo-table IDs that maps to named zones.
NewZoneConfig is the zone configuration used when no custom config has been specified.
ResolveZoneSpecifier converts a zone specifier to the ID of most specific zone whose config applies.
StoreMatchesConstraint returns whether a store's attributes or node's locality match the constraint's spec.
StoreSatisfiesConstraint checks whether a store satisfies the given constraint.
ValidateNoRepeatKeysInZone checks that there are not duplicated values for a particular constraint.
ZoneSpecifierFromID creates a tree.ZoneSpecifier for the zone with the given ID.
# Constants
Several ranges outside of the SQL keyspace are given special names so they can be targeted by zone configs.
Several ranges outside of the SQL keyspace are given special names so they can be targeted by zone configs.
Several ranges outside of the SQL keyspace are given special names so they can be targeted by zone configs.
Several ranges outside of the SQL keyspace are given special names so they can be targeted by zone configs.
Several ranges outside of the SQL keyspace are given special names so they can be targeted by zone configs.
Several ranges outside of the SQL keyspace are given special names so they can be targeted by zone configs.
# Variables
MultiRegionZoneConfigFields are the fields on a zone configuration which may be set by the system for multi-region objects".
MultiRegionZoneConfigFieldsSet contain the items in MultiRegionZoneConfigFields but in a set form for fast lookup.
NamedZones maps named zones to their pseudo-table ID that can be used to install an entry into the system.zones table.
NamedZonesByID is the inverse of NamedZones: it maps pseudo-table IDs to their zone names.
NamedZonesList is a list of all named zones that reference ranges outside the SQL keyspace which can be referenced by zone configurations.
# Structs
ConstraintsList is an alias for a slice of Constraints that can be properly marshaled to/from YAML.
DiffWithZoneMismatch indicates a mismatch between zone configurations.
# Type aliases
NamedZone is a custom type for names used to reference ranges outside the SQL keyspace by zone configurations.