MCPcopy Index your code

hub / github.com/cockroachdb/redact / functions

Functions332 in github.com/cockroachdb/redact

MethodHashValue
()
interfaces/interfaces.go:171
MethodHashValue
HashValue makes HashString a HashValue.
interfaces/interfaces.go:178
MethodHashValue
HashValue makes HashInt a HashValue.
interfaces/interfaces.go:184
MethodHashValue
HashValue makes HashUint a HashValue.
interfaces/interfaces.go:190
MethodHashValue
HashValue makes HashFloat a HashValue.
interfaces/interfaces.go:196
MethodHashValue
HashValue makes HashRune a HashValue.
interfaces/interfaces.go:202
MethodHashValue
HashValue makes HashByte a HashValue.
interfaces/interfaces.go:208
MethodHashValue
HashValue makes HashBytes a HashValue.
interfaces/interfaces.go:214
MethodLen
Len returns the number of bytes in the buffer.
internal/buffer/buffer.go:116
MethodLess
(i, j int)
util.go:61
MethodLess
(i, j int)
internal/rfmt/fmtsort/sort.go:29
FunctionMakeFormat
MakeFormat is a helper for use by implementations of the SafeFormatter interface. It reproduces the format currently active in fmt.State and verb. Thi
api.go:186
FunctionNewFactory
()
otelprocessor/factory.go:13
MethodPrecision
()
internal/rfmt/print.go:172
FunctionPrint
Print formats using the default formats for its operands and writes to standard output. Spaces are added between operands when neither is a string. It
internal/rfmt/print.go:249
MethodPrint
(args ...interface{})
internal/rfmt/printer_adapter.go:61
FunctionPrintf
Printf formats according to a format specifier and writes to standard output. It returns the number of bytes written and any write error encountered.
internal/rfmt/print.go:220
MethodPrintf
(format string, arg ...interface{})
internal/rfmt/printer_adapter.go:71
FunctionPrintln
Println formats using the default formats for its operands and writes to standard output. Spaces are always added between operands and a newline is ap
internal/rfmt/print.go:281
MethodRedact
Redact replaces all occurrences of unsafe substrings by the "Redacted" marker, ‹×›. Hash markers (‹†value›) are replaced with hashed values (‹hash›) i
internal/markers/markers.go:52
FunctionRedactedMarker
RedactedMarker returns the special string used by Redact.
internal/markers/markers.go:152
FunctionRegisterRedactErrorFn
RegisterRedactErrorFn registers an error redaction function for use during automatic redaction by this package. Provided e.g. by cockroachdb/errors.
api.go:173
FunctionRegisterRedactErrorFn
RegisterRedactErrorFn registers an error redaction function for use during automatic redaction by this package. Provided e.g. by cockroachdb/errors.
internal/rfmt/registry.go:44
FunctionRegisterSafeType
RegisterSafeType registers a data type to always be considered safe during the production of redactable strings.
api.go:199
FunctionSafe
Safe turns any value into an object that is considered as safe by the formatter. This is provided as an “escape hatch” for cases where the other inte
internal/redact/wrappers.go:53
MethodSafeByte
SafeByte implements SafePrinter.
internal/rfmt/printer_adapter.go:50
MethodSafeByte
SafeByte emits a safe byte.
interfaces/interfaces.go:69
MethodSafeBytes
SafeBytes implements SafePrinter.
internal/rfmt/printer_adapter.go:56
MethodSafeBytes
SafeBytes emits a safe byte slice.
interfaces/interfaces.go:72
MethodSafeFloat
SafeFloat implements SafePrinter.
internal/rfmt/printer_adapter.go:38
MethodSafeFormat
(w SafePrinter, _ rune)
markers_test.go:274
MethodSafeFormat
(SafePrinter, rune)
markers_test.go:610
MethodSafeFormat
(p SafePrinter, _ rune)
markers_test.go:652
MethodSafeFormat
SafeFormat formats the redactable safely.
internal/markers/markers.go:65
MethodSafeFormat
SafeFormat formats the redactable safely.
internal/markers/markers.go:139
MethodSafeFormat
SafeFormat implements SafeFormatter.
builder/builder.go:39
MethodSafeInt
SafeInt implements SafePrinter.
internal/rfmt/printer_adapter.go:26
MethodSafeMessage
()
markers_test.go:620
MethodSafeMessage
()
markers_test.go:624
MethodSafeRune
SafeRune implements SafePrinter.
internal/rfmt/printer_adapter.go:44
MethodSafeString
SafeString implements SafePrinter.
internal/rfmt/printer_adapter.go:20
MethodSafeUint
SafeUint implements SafePrinter.
internal/rfmt/printer_adapter.go:32
MethodSafeValue
()
markers_test.go:280
MethodSafeValue
()
markers_test.go:284
MethodSafeValue
()
markers_test.go:525
MethodSafeValue
()
markers_test.go:561
MethodSafeValue
()
markers_test.go:575
MethodSafeValue
()
markers_test.go:595
MethodSafeValue
()
markers_test.go:603
MethodSafeValue
SafeValue implements the SafeValue interface.
internal/redact/wrappers.go:74
MethodSafeValue
SafeValue makes SafeString a SafeValue.
interfaces/interfaces.go:102
MethodSafeValue
SafeValue makes SafeInt a SafeValue.
interfaces/interfaces.go:108
MethodSafeValue
SafeValue makes SafeUint a SafeValue.
interfaces/interfaces.go:114
MethodSafeValue
SafeValue makes SafeFloat a SafeValue.
interfaces/interfaces.go:120
MethodSafeValue
SafeValue makes SafeRune a SafeValue.
interfaces/interfaces.go:126
MethodSafeValue
SafeValue makes SafeByte a SafeValue.
interfaces/interfaces.go:132
MethodSafeValue
SafeValue makes SafeBytes a SafeValue.
interfaces/interfaces.go:138
MethodSafeValue
()
interfaces/interfaces.go:158
FunctionSprintln
Sprintln formats using the default formats for its operands and returns the resulting string. Spaces are always added between operands and a newline i
internal/rfmt/print.go:287
FunctionStartMarker
StartMarker returns the start delimiter for an unsafe string.
internal/markers/markers.go:146
MethodString
()
markers_test.go:554
MethodString
()
markers_test.go:562
MethodString
()
markers_test.go:582
MethodString
()
markers_test.go:596
MethodString
String implemens fmt.Stringer.
internal/buffer/buffer.go:79
FunctionStringWithoutMarkers
StringWithoutMarkers formats the provided SafeFormatter and strips the redaction markers from the result. This is provided for convenience to facilita
markers_print.go:73
MethodStripMarkers
StripMarkers removes the redaction markers from the RedactableString. This returns an unsafe string where all safe and unsafe bits are mixed together.
internal/markers/markers.go:37
MethodSwap
(i, j int)
util.go:62
MethodSwap
(i, j int)
internal/rfmt/fmtsort/sort.go:30
FunctionTestBufferDelimiterElision
(t *testing.T)
internal/buffer/buffer_test.go:336
FunctionTestBufferEscapedSafeWrites
(t *testing.T)
internal/buffer/buffer_test.go:205
FunctionTestBufferPreserveSafeSpacesWhenSwitchingToUnsafe
This test checks that moving mode from SafeEscaped to UnsafeEscaped does not erase safe spaces written previously.
internal/buffer/buffer_test.go:1163
FunctionTestBufferRawSafeWrites
(t *testing.T)
internal/buffer/buffer_test.go:357
FunctionTestBufferUnsafeWrites
(t *testing.T)
internal/buffer/buffer_test.go:69
FunctionTestBuilder
(t *testing.T)
builder/builder_test.go:26
FunctionTestConversions
(t *testing.T)
markers_test.go:236
FunctionTestCustomSafeTypes
(t *testing.T)
internal/rfmt/registry_test.go:24
FunctionTestEscapeBytes
(t *testing.T)
markers_test.go:477
FunctionTestEscapeMarkers
(t *testing.T)
internal/markers/strip_test.go:247
FunctionTestFormatPropagation
(t *testing.T)
markers_test.go:252
FunctionTestFormatRedirect
TestFormatRedirect checks that the count return from the (*escapeWriter).Write() method is correct when there are newline characters.
markers_test.go:629
FunctionTestHash
(t *testing.T)
internal/markers/hash_test.go:22
FunctionTestHashDeterminism
(t *testing.T)
internal/markers/hash_test.go:84
FunctionTestHashRedact_AdjacentZones
TestHashRedact_AdjacentZones verifies that the buffer's zone-merging optimization does not combine a hash zone with an adjacent unsafe zone.
hash_redact_test.go:353
FunctionTestHashRedact_AllHashTypes
(t *testing.T)
hash_redact_test.go:117
FunctionTestHashRedact_ConcurrentToggle
TestHashRedact_ConcurrentToggle exercises concurrent Enable/Disable/Redact calls to verify there are no races or panics under contention.
hash_redact_test.go:318
FunctionTestHashRedact_DisabledHashing
(t *testing.T)
hash_redact_test.go:39
FunctionTestHashRedact_EnableAfterFormat
TestHashRedact_EnableAfterFormat verifies that hash markers written before EnableHashing are correctly hashed when Redact() is called after enabling.
hash_redact_test.go:176
FunctionTestHashRedact_EndToEnd
(t *testing.T)
hash_redact_test.go:24
FunctionTestHashRedact_FormatVerbs
(t *testing.T)
hash_redact_test.go:62
FunctionTestHashRedact_HashBytes
(t *testing.T)
hash_redact_test.go:272
FunctionTestHashRedact_MixedMarkers
(t *testing.T)
hash_redact_test.go:49
FunctionTestHashRedact_MultipleHashMarkers
(t *testing.T)
hash_redact_test.go:190
FunctionTestHashRedact_RedactableBytes
(t *testing.T)
hash_redact_test.go:147
FunctionTestHashRedact_RedactableBytesDisabled
(t *testing.T)
hash_redact_test.go:307
FunctionTestHashRedact_ReflectValue
TestHashRedact_ReflectValue exercises the reflect.Value case in printArg, where a reflect.Value wrapping a HashValue is passed as an argument.
hash_redact_test.go:243
FunctionTestHashRedact_SafeWrapping
(t *testing.T)
hash_redact_test.go:92
FunctionTestHashRedact_Sprint
(t *testing.T)
hash_redact_test.go:258
FunctionTestHashRedact_StripMarkers
(t *testing.T)
hash_redact_test.go:164
FunctionTestHashRedact_StructWithHashField
TestHashRedact_StructWithHashField exercises printValue where a struct contains a HashValue field alongside a regular unsafe field.
hash_redact_test.go:222
← previousnext →201–300 of 332, ranked by callers