MCPcopy Index your code

hub / github.com/cockroachdb/redact / functions

Functions332 in github.com/cockroachdb/redact

↓ 2 callersMethodescapeToEnd
escapeToEnd escapes occurrences of redaction markers in b.buf[b.validUntil:] and advances b.validUntil until the end.
internal/buffer/buffer.go:248
↓ 2 callersMethodfmtBool
(v bool, verb rune)
internal/rfmt/print.go:359
↓ 2 callersMethodfmtBx
fmtBx formats a byte slice as a hexadecimal encoding of its bytes.
internal/rfmt/format.go:436
↓ 2 callersMethodfmtBytes
(v []byte, verb rune, typeString string)
internal/rfmt/print.go:486
↓ 2 callersMethodfmtPointer
(value reflect.Value, verb rune)
internal/rfmt/print.go:533
↓ 2 callersMethodfmtSbx
fmtSbx formats a string or byte slice as a hexadecimal encoding of its bytes.
internal/rfmt/format.go:364
↓ 2 callersMethodfmtSx
fmtSx formats a string as a hexadecimal encoding of its bytes.
internal/rfmt/format.go:431
↓ 2 callersMethodhandleSpecialValues
( value reflect.Value, t reflect.Type, verb rune, depth int, )
internal/rfmt/helpers.go:115
↓ 2 callersFunctionintFromArg
intFromArg gets the argNumth element of a. On return, isInt reports whether the argument has integer type.
internal/rfmt/print.go:1011
↓ 2 callersFunctionisNaN
(a float64)
internal/rfmt/fmtsort/sort.go:220
↓ 2 callersFunctionnewRedactProcessor
(_ context.Context, config *Config)
otelprocessor/processor.go:15
↓ 2 callersFunctionnilCompare
nilCompare checks whether either value is nil. If not, the boolean is false. If either value is nil, the boolean is true and the integer is the compar
internal/rfmt/fmtsort/sort.go:192
↓ 2 callersFunctionredactBytes
redactBytes is the shared implementation for both RedactableString.Redact and RedactableBytes.Redact.
internal/markers/markers.go:95
↓ 2 callersMethodstartUnsafeOverride
()
internal/rfmt/helpers.go:63
↓ 2 callersFunctiontooLarge
tooLarge reports whether the magnitude of the integer is too large to be used as a formatting width or precision.
internal/rfmt/print.go:308
↓ 2 callersMethodtruncateString
truncateString truncates the string s to the specified precision, if present.
internal/rfmt/format.go:319
↓ 1 callersMethodCap
Cap returns the capacity of the buffer's underlying byte slice, that is, the total space allocated for the buffer's data.
internal/buffer/buffer.go:124
↓ 1 callersFunctionEndMarker
EndMarker returns the end delimiter for an unsafe string.
api.go:135
↓ 1 callersFunctionEscapeBytes
EscapeBytes escapes markers inside the given byte slice and encloses the entire byte slice between redaction markers. EscapeBytes escapes markers insi
api.go:148
↓ 1 callersFunctionEscapeMarkers
EscapeMarkers escapes the special delimiters from the provided byte slice.
api.go:142
↓ 1 callersMethodFormat
CUSTOM: refer to the original type, not the one defined here.
internal/rfmt/print.go:66
↓ 1 callersFunctionFprint
Fprint is like Sprint but outputs the redactable string to the provided Writer.
markers_print.go:79
↓ 1 callersFunctionFprintln
These routines end in 'ln', do not take a format string, always add spaces between operands, and add a newline after the last operand. Fprintln format
internal/rfmt/print.go:270
↓ 1 callersMethodGoString
()
internal/rfmt/print.go:83
↓ 1 callersMethodGrow
Grow grows the buffer's capacity, if necessary, to guarantee space for another n bytes. After Grow(n), at least n bytes can be written to the buffer w
internal/buffer/buffer.go:329
↓ 1 callersFunctionHelperForErrorf
HelperForErrorf is a helper to implement a redaction-aware fmt.Errorf-compatible function in a different package. It formats the string according to t
internal/rfmt/helpers.go:162
↓ 1 callersFunctionIsHashingEnabled
IsHashingEnabled returns true if hash-based redaction is enabled.
internal/markers/hash.go:106
↓ 1 callersFunctionJoin
Join creates a redactable string from the given slice of redactable strings, adjoined with the provided delimiter.
util.go:45
↓ 1 callersMethodPrecision
Precision returns the value of the precision option and whether it has been set.
internal/rfmt/print.go:55
↓ 1 callersFunctionRedactedMarker
RedactedMarker returns the special string used by Redact.
api.go:138
↓ 1 callersFunctionRegisterSafeType
RegisterSafeType registers a data type to always be considered safe during the production of redactable strings.
internal/rfmt/registry.go:25
↓ 1 callersMethodSafeBytes
(s i.SafeBytes)
builder/builder.go:138
↓ 1 callersMethodSafeFloat
SafeFloat emits a safe floating-point value.
interfaces/interfaces.go:63
↓ 1 callersMethodSafeFloat
SafeFloat is part of the SafeWriter interface.
builder/builder.go:122
↓ 1 callersMethodSafeFormat
SafeFormat is like the Format method of fmt.Formatter, except that it operates using a SafePrinter instead of a fmt.State for output. The verb argume
interfaces/interfaces.go:31
↓ 1 callersMethodSafeInt
SafeInt emits a safe integer.
interfaces/interfaces.go:57
↓ 1 callersMethodSafeInt
SafeInt is part of the SafeWriter interface.
builder/builder.go:110
↓ 1 callersMethodSafeMessage
SafeMessage implements SafeMessager.
internal/redact/wrappers.go:82
↓ 1 callersMethodSafeUint
SafeUint emits a safe unsigned integer.
interfaces/interfaces.go:60
↓ 1 callersMethodSafeUint
SafeUint is part of the SafeWriter interface.
builder/builder.go:116
↓ 1 callersFunctionSort
Sort accepts a map and returns a SortedMap that has the same keys and values but in a stable sorted order according to the keys, modulo issues raised
internal/rfmt/fmtsort/sort.go:54
↓ 1 callersFunctionSortStrings
SortStrings sorts the provided slice of redactable strings.
util.go:52
↓ 1 callersFunctionSprintf
Sprintf formats according to a format specifier and returns the resulting string.
internal/rfmt/print.go:225
↓ 1 callersFunctionSprintfn
Sprintfn produces a RedactableString using the provided SafeFormat-alike function.
markers_print.go:59
↓ 1 callersFunctionSprintfn
Sprintfn produces a RedactableString using the provided SafeFormat-alike function.
internal/rfmt/helpers.go:145
↓ 1 callersFunctionStartMarker
StartMarker returns the start delimiter for an unsafe string.
api.go:132
↓ 1 callersMethodToString
ToString converts the byte slice to a string.
internal/markers/markers.go:134
↓ 1 callersMethodUnsafeBytes
UnsafeBytes writes an unsafe byte slice.
interfaces/interfaces.go:92
↓ 1 callersMethodUnsafeBytes
UnsafeBytes is part of the SafeWriter interface.
builder/builder.go:162
↓ 1 callersMethodUnsafeRune
UnsafeRune is part of the SafeWriter interface.
builder/builder.go:150
↓ 1 callersMethodWidth
Width returns the value of the width option and whether it has been set.
internal/rfmt/print.go:53
↓ 1 callersMethodbadArgNum
(verb rune)
internal/rfmt/print.go:1086
↓ 1 callersFunctioncheckBalanced
(t *testing.T, s string)
internal/buffer/buffer_test.go:36
↓ 1 callersMethodclone
clone is used in tests.
internal/buffer/buffer.go:338
↓ 1 callersFunctioncompare
compare compares two values of the same type. It returns -1, 0, 1 according to whether a > b (1), a == b (0), or a < b (-1). If the types differ, it r
internal/rfmt/fmtsort/sort.go:81
↓ 1 callersMethodfmtBoolean
fmtBoolean formats a boolean.
internal/rfmt/format.go:121
↓ 1 callersMethodfmtBs
fmtBs formats the byte slice b as if it was formatted as string with fmtS.
internal/rfmt/format.go:358
↓ 1 callersMethodfmtC
fmtC formats an integer as a Unicode character. If the character is not valid Unicode, it will print '\ufffd'.
internal/rfmt/format.go:459
↓ 1 callersMethodfmtQc
fmtQc formats an integer as a single-quoted, escaped Go character constant. If the character is not valid Unicode, it will print '\ufffd'.
internal/rfmt/format.go:471
↓ 1 callersMethodfmtUnicode
fmtUnicode formats a uint64 as "U+0078" or with f.sharp set as "U+0078 'x'".
internal/rfmt/format.go:130
↓ 1 callersFunctiongetField
getField gets the i'th field of the struct value. If the field is itself is an interface, return a value for the thing inside the interface, not the i
internal/rfmt/print.go:298
↓ 1 callersFunctiongetFormat
(testFmt string)
internal/fmtforward/make_format_test.go:51
↓ 1 callersMethodinit
(buf *buffer)
internal/rfmt/format.go:61
↓ 1 callersFunctionmakeMixedRedactableBytes
()
markers_test.go:733
↓ 1 callersFunctionmakeMixedRedactableString
()
markers_test.go:723
↓ 1 callersFunctionmakeMixedSafe
()
markers_test.go:705
↓ 1 callersFunctionmakeMixedSafeStringer
()
markers_test.go:714
↓ 1 callersFunctionmakeSlice
makeSlice allocates a slice of size n. If the allocation fails, it panics with ErrTooLarge.
internal/buffer/buffer.go:346
↓ 1 callersMethodmissingArg
(verb rune)
internal/rfmt/print.go:1092
↓ 1 callersFunctionparseArgNumber
parseArgNumber returns the value of the bracketed number, minus 1 (explicit argument numbers are one-indexed but we want zero-indexed). The opening br
internal/rfmt/print.go:1049
↓ 1 callersMethodprocessLogBody
(body pcommon.Value)
otelprocessor/processor.go:42
↓ 1 callersMethodprocessLogs
(_ context.Context, logs plog.Logs)
otelprocessor/processor.go:23
↓ 1 callersMethodprocessResourceLog
(rl plog.ResourceLogs)
otelprocessor/processor.go:32
↓ 1 callersMethodstartRedactable
startRedactable adds the opening redaction marker.
internal/buffer/buffer.go:222
↓ 1 callersMethodtruncate
truncate truncates the byte slice b as a string of the specified precision, if present.
internal/rfmt/format.go:333
↓ 1 callersMethodunknownType
(v reflect.Value)
internal/rfmt/print.go:328
FunctionBenchmarkEscapeMarkers
(b *testing.B)
internal/markers/strip_test.go:353
FunctionBenchmarkRedact
(b *testing.B)
bench_test.go:19
FunctionBenchmarkRedactCall_HashEnabled
BenchmarkRedactCall_HashMarkers calls .Redact() on a string with ‹†...› hash markers and hashing enabled. This exercises the SHA-256 path.
bench_test.go:40
FunctionBenchmarkRedactCall_HashWithSalt
BenchmarkRedactCall_SingleHashWithSalt — 1 ‹†alice› marker, HMAC-SHA256.
bench_test.go:51
FunctionBenchmarkRedactCall_RegularRedaction
BenchmarkRedactCall_PlainMarkers calls .Redact() on a string with only regular ‹...› markers (no hash markers). This is the baseline.
bench_test.go:30
FunctionBenchmarkStripMarkers_Bytes
(b *testing.B)
internal/markers/strip_test.go:329
FunctionBenchmarkStripMarkers_NoMarkers
(b *testing.B)
internal/markers/strip_test.go:337
FunctionBenchmarkStripMarkers_NonMarkerUnicode
(b *testing.B)
internal/markers/strip_test.go:345
FunctionBenchmarkStripMarkers_String
(b *testing.B)
internal/markers/strip_test.go:321
FunctionEndMarker
EndMarker returns the end delimiter for an unsafe string.
internal/markers/markers.go:149
FunctionEscapeBytes
EscapeBytes escapes markers inside the given byte slice and encloses the entire byte slice between redaction markers. EscapeBytes escapes markers insi
internal/rfmt/helpers.go:176
FunctionExample_format
()
markers_test.go:368
FunctionExample_mixed_writes
()
internal/buffer/buffer_test.go:500
FunctionExample_newlines
()
internal/buffer/buffer_test.go:490
MethodFlag
(b int)
internal/rfmt/print.go:174
MethodFormat
(w fmt.State, _ rune)
markers_test.go:568
MethodFormat
(w fmt.State, _ rune)
markers_test.go:576
MethodFormat
(fmt.State, rune)
markers_test.go:588
MethodFormat
(fmt.State, rune)
markers_test.go:604
MethodFormat
Format implements the fmt.Formatter interface.
markers_test.go:642
MethodFormat
(s fmt.State, verb rune)
internal/fmtforward/make_format_test.go:47
MethodFormat
(s origFmt.State, verb rune)
internal/redact/wrappers.go:42
MethodFormat
Format implements the fmt.Formatter interface.
internal/redact/wrappers.go:77
MethodGetValue
()
internal/redact/wrappers.go:71
← previousnext →101–200 of 332, ranked by callers