package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev

# Packages

# Functions

DecodeKeyIntoZoneIDAndSuffix figures out the zone that the key belongs to.
DecodeObjectID decodes the object ID for the system-tenant from the front of key.
MakeSystemConfigMask constructs a new SystemConfigMask that passes through only the specified keys when applied.
MakeZoneKey returns the key for a given id's entry in the system.zones table.
MakeZoneKeyPrefix returns the key prefix for id's row in the system.zones table.
NewConstantSystemConfigProvider constructs a SystemConfigProvider which always returns the same value.
NewSystemConfig returns an initialized instance of SystemConfig.
ShouldSplitAtDesc determines whether a specific descriptor should be considered for a split.
StaticSplits are predefined split points in the system keyspace.
TestingGetSystemTenantZoneConfigForKey looks up the zone config the provided key.
TestingSetupZoneConfigHook initializes the zone config hook to 'testingZoneConfigHook' which uses 'testingZoneConfig'.
TestingSetZoneConfig sets the zone config entry for object 'id' in the testing map.
ZonesPrimaryIndexPrefix returns key prefix for the primary index in the system.zones table.

# Constants

constraints.
gc.ttlseconds.
global_reads.
lease_preferences.
NumFields is the number of fields in the config.
num_replicas.
num_voters.
range_max_bytes.
range_min_bytes.
voter_constraints.

# Variables

ZoneConfigHook is a function used to lookup a zone config given a system tenant table or database ID.

# Structs

ConstantSystemConfigProvider is an implementation of SystemConfigProvider which always returns the same value.
SystemConfig embeds a SystemConfigEntries message which contains an entry for every system descriptor (e.g.
SystemConfigMask is a mask that can be applied to a set of system config entries to filter out unwanted entries.

# Interfaces

SystemConfigProvider is capable of providing the SystemConfig, as well as notifying clients of updates to the SystemConfig.

# Type aliases

Field corresponds to a field in either a SpanConfig or ZoneConfig.
ObjectID is an identifier for an object (e.g.