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

# Packages

# Functions

MaybeLimitAndOffset checks if "offset" and "limit" arguments are provided in the datadriven test, and if so, returns a minification of the given input after having dropped an offset number of lines and limiting the results as need.
NewKVAccessorRecorder returns a new KVAccessorRecorder.
NewWrappedKVSubscriber creates a new WrappedKVSubscriber.
ParseConfig is helper function that constructs a roachpb.SpanConfig that's "tagged" with the given string.
ParseDeclareBoundsArguments parses datadriven test input to a list of tenantcapabilities.Updates that can be applied to a tenantcapabilities.Reader.
ParseKey constructs a roachpb.Key from the supplied input.
ParseKVAccessorGetArguments is a helper function that parses datadriven kvaccessor-get arguments into the relevant spans.
ParseKVAccessorUpdateArguments is a helper function that parses datadriven kvaccessor-update arguments into the relevant targets and records.
ParseNodeID is helper function that constructs a roachpb.NodeID from a string of the form "n<int>".
ParseProtectionTarget returns a ptpb.Target based on the input.
ParseRangeID is helper function that constructs a roachpb.RangeID from a string of the form "r<int>".
ParseReplicaSet is helper function that constructs a roachpb.ReplicaSet from a string of the form "voters=[n1,n2,...] non-voters=[n3,...]".
ParseSpan is helper function that constructs a roachpb.Span from a string of the form "[start, end)".
ParseSpanConfigRecord is helper function that constructs a spanconfig.Target from a string of the form target:config.
ParseStoreApplyArguments is a helper function that parses datadriven store update arguments.
ParseTarget is a helper function that constructs a spanconfig.Target from a string that conforms to spanRe.
ParseZoneConfig is helper function that constructs a zonepb.ZoneConfig from a string of the form "num_replicas=<int> num_voters=<int> constraints='..' voter_constraints='..'".
PrintSpan is a helper function that transforms roachpb.Span into a string of the form "[start,end)".
PrintSpanConfig is a helper function that transforms roachpb.SpanConfig into a readable string.
PrintSpanConfigDiffedAgainstDefaults is a helper function that diffs the given config against RANGE {DEFAULT, SYSTEM} and the config for the system database (as expected on both kinds of tenants), and returns a string for the mismatched fields.
PrintSpanConfigRecord is a helper function that transforms spanconfig.Record into a string of the form "target:config".
PrintSystemSpanConfigDiffedAgainstDefault is a helper function that diffs the given config against the default system span config that applies to spanconfig.SystemTargets, and returns a string for the mismatched fields.
PrintTarget is a helper function that prints a spanconfig.Target.

# Structs

BoundsUpdate ..
KVAccessorRecorder wraps around a KVAccessor and records the mutations applied to it.
WrappedKVSubscriber is a KVSubscriber which wraps another KVSubscriber and overrides specific SpanConfigs.