Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/cockroachdb/redact
/ functions
Functions
332 in github.com/cockroachdb/redact
⨍
Functions
332
◇
Types & classes
70
Method
HashValue
()
interfaces/interfaces.go:171
Method
HashValue
HashValue makes HashString a HashValue.
interfaces/interfaces.go:178
Method
HashValue
HashValue makes HashInt a HashValue.
interfaces/interfaces.go:184
Method
HashValue
HashValue makes HashUint a HashValue.
interfaces/interfaces.go:190
Method
HashValue
HashValue makes HashFloat a HashValue.
interfaces/interfaces.go:196
Method
HashValue
HashValue makes HashRune a HashValue.
interfaces/interfaces.go:202
Method
HashValue
HashValue makes HashByte a HashValue.
interfaces/interfaces.go:208
Method
HashValue
HashValue makes HashBytes a HashValue.
interfaces/interfaces.go:214
Method
Len
Len returns the number of bytes in the buffer.
internal/buffer/buffer.go:116
Method
Less
(i, j int)
util.go:61
Method
Less
(i, j int)
internal/rfmt/fmtsort/sort.go:29
Function
MakeFormat
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
Function
NewFactory
()
otelprocessor/factory.go:13
Method
Precision
()
internal/rfmt/print.go:172
Function
Print
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
Method
Print
(args ...interface{})
internal/rfmt/printer_adapter.go:61
Function
Printf
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
Method
Printf
(format string, arg ...interface{})
internal/rfmt/printer_adapter.go:71
Function
Println
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
Method
Redact
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
Function
RedactedMarker
RedactedMarker returns the special string used by Redact.
internal/markers/markers.go:152
Function
RegisterRedactErrorFn
RegisterRedactErrorFn registers an error redaction function for use during automatic redaction by this package. Provided e.g. by cockroachdb/errors.
api.go:173
Function
RegisterRedactErrorFn
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
Function
RegisterSafeType
RegisterSafeType registers a data type to always be considered safe during the production of redactable strings.
api.go:199
Function
Safe
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
Method
SafeByte
SafeByte implements SafePrinter.
internal/rfmt/printer_adapter.go:50
Method
SafeByte
SafeByte emits a safe byte.
interfaces/interfaces.go:69
Method
SafeBytes
SafeBytes implements SafePrinter.
internal/rfmt/printer_adapter.go:56
Method
SafeBytes
SafeBytes emits a safe byte slice.
interfaces/interfaces.go:72
Method
SafeFloat
SafeFloat implements SafePrinter.
internal/rfmt/printer_adapter.go:38
Method
SafeFormat
(w SafePrinter, _ rune)
markers_test.go:274
Method
SafeFormat
(SafePrinter, rune)
markers_test.go:610
Method
SafeFormat
(p SafePrinter, _ rune)
markers_test.go:652
Method
SafeFormat
SafeFormat formats the redactable safely.
internal/markers/markers.go:65
Method
SafeFormat
SafeFormat formats the redactable safely.
internal/markers/markers.go:139
Method
SafeFormat
SafeFormat implements SafeFormatter.
builder/builder.go:39
Method
SafeInt
SafeInt implements SafePrinter.
internal/rfmt/printer_adapter.go:26
Method
SafeMessage
()
markers_test.go:620
Method
SafeMessage
()
markers_test.go:624
Method
SafeRune
SafeRune implements SafePrinter.
internal/rfmt/printer_adapter.go:44
Method
SafeString
SafeString implements SafePrinter.
internal/rfmt/printer_adapter.go:20
Method
SafeUint
SafeUint implements SafePrinter.
internal/rfmt/printer_adapter.go:32
Method
SafeValue
()
markers_test.go:280
Method
SafeValue
()
markers_test.go:284
Method
SafeValue
()
markers_test.go:525
Method
SafeValue
()
markers_test.go:561
Method
SafeValue
()
markers_test.go:575
Method
SafeValue
()
markers_test.go:595
Method
SafeValue
()
markers_test.go:603
Method
SafeValue
SafeValue implements the SafeValue interface.
internal/redact/wrappers.go:74
Method
SafeValue
SafeValue makes SafeString a SafeValue.
interfaces/interfaces.go:102
Method
SafeValue
SafeValue makes SafeInt a SafeValue.
interfaces/interfaces.go:108
Method
SafeValue
SafeValue makes SafeUint a SafeValue.
interfaces/interfaces.go:114
Method
SafeValue
SafeValue makes SafeFloat a SafeValue.
interfaces/interfaces.go:120
Method
SafeValue
SafeValue makes SafeRune a SafeValue.
interfaces/interfaces.go:126
Method
SafeValue
SafeValue makes SafeByte a SafeValue.
interfaces/interfaces.go:132
Method
SafeValue
SafeValue makes SafeBytes a SafeValue.
interfaces/interfaces.go:138
Method
SafeValue
()
interfaces/interfaces.go:158
Function
Sprintln
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
Function
StartMarker
StartMarker returns the start delimiter for an unsafe string.
internal/markers/markers.go:146
Method
String
()
markers_test.go:554
Method
String
()
markers_test.go:562
Method
String
()
markers_test.go:582
Method
String
()
markers_test.go:596
Method
String
String implemens fmt.Stringer.
internal/buffer/buffer.go:79
Function
StringWithoutMarkers
StringWithoutMarkers formats the provided SafeFormatter and strips the redaction markers from the result. This is provided for convenience to facilita
markers_print.go:73
Method
StripMarkers
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
Method
Swap
(i, j int)
util.go:62
Method
Swap
(i, j int)
internal/rfmt/fmtsort/sort.go:30
Function
TestBufferDelimiterElision
(t *testing.T)
internal/buffer/buffer_test.go:336
Function
TestBufferEscapedSafeWrites
(t *testing.T)
internal/buffer/buffer_test.go:205
Function
TestBufferPreserveSafeSpacesWhenSwitchingToUnsafe
This test checks that moving mode from SafeEscaped to UnsafeEscaped does not erase safe spaces written previously.
internal/buffer/buffer_test.go:1163
Function
TestBufferRawSafeWrites
(t *testing.T)
internal/buffer/buffer_test.go:357
Function
TestBufferUnsafeWrites
(t *testing.T)
internal/buffer/buffer_test.go:69
Function
TestBuilder
(t *testing.T)
builder/builder_test.go:26
Function
TestConversions
(t *testing.T)
markers_test.go:236
Function
TestCustomSafeTypes
(t *testing.T)
internal/rfmt/registry_test.go:24
Function
TestEscapeBytes
(t *testing.T)
markers_test.go:477
Function
TestEscapeMarkers
(t *testing.T)
internal/markers/strip_test.go:247
Function
TestFormatPropagation
(t *testing.T)
markers_test.go:252
Function
TestFormatRedirect
TestFormatRedirect checks that the count return from the (*escapeWriter).Write() method is correct when there are newline characters.
markers_test.go:629
Function
TestHash
(t *testing.T)
internal/markers/hash_test.go:22
Function
TestHashDeterminism
(t *testing.T)
internal/markers/hash_test.go:84
Function
TestHashRedact_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
Function
TestHashRedact_AllHashTypes
(t *testing.T)
hash_redact_test.go:117
Function
TestHashRedact_ConcurrentToggle
TestHashRedact_ConcurrentToggle exercises concurrent Enable/Disable/Redact calls to verify there are no races or panics under contention.
hash_redact_test.go:318
Function
TestHashRedact_DisabledHashing
(t *testing.T)
hash_redact_test.go:39
Function
TestHashRedact_EnableAfterFormat
TestHashRedact_EnableAfterFormat verifies that hash markers written before EnableHashing are correctly hashed when Redact() is called after enabling.
hash_redact_test.go:176
Function
TestHashRedact_EndToEnd
(t *testing.T)
hash_redact_test.go:24
Function
TestHashRedact_FormatVerbs
(t *testing.T)
hash_redact_test.go:62
Function
TestHashRedact_HashBytes
(t *testing.T)
hash_redact_test.go:272
Function
TestHashRedact_MixedMarkers
(t *testing.T)
hash_redact_test.go:49
Function
TestHashRedact_MultipleHashMarkers
(t *testing.T)
hash_redact_test.go:190
Function
TestHashRedact_RedactableBytes
(t *testing.T)
hash_redact_test.go:147
Function
TestHashRedact_RedactableBytesDisabled
(t *testing.T)
hash_redact_test.go:307
Function
TestHashRedact_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
Function
TestHashRedact_SafeWrapping
(t *testing.T)
hash_redact_test.go:92
Function
TestHashRedact_Sprint
(t *testing.T)
hash_redact_test.go:258
Function
TestHashRedact_StripMarkers
(t *testing.T)
hash_redact_test.go:164
Function
TestHashRedact_StructWithHashField
TestHashRedact_StructWithHashField exercises printValue where a struct contains a HashValue field alongside a regular unsafe field.
hash_redact_test.go:222
← previous
next →
201–300 of 332, ranked by callers