MCPcopy Index your code

hub / github.com/cockroachdb/redact / types & classes

Types & classes70 in github.com/cockroachdb/redact

↓ 53 callersTypeAliasRedactableString
RedactableString is a string that contains a mix of safe and unsafe bits of data, but where it is known that unsafe bits are enclosed by redaction mar
internal/markers/markers.go:32
↓ 27 callersTypeAliasHashString
HashString represents a string that should be hashed when redacted.
interfaces/interfaces.go:175
↓ 18 callersTypeAliasRedactableBytes
RedactableBytes is like RedactableString but is a byte slice. Instances of RedactableBytes should not be constructed directly; instead use the facili
internal/markers/markers.go:76
↓ 18 callersTypeAliassafe
markers_test.go:278
↓ 9 callersTypeAliasSafeString
SafeString represents a string that is not a sensitive value.
interfaces/interfaces.go:99
↓ 4 callersTypeAliasHashInt
HashInt represents an integer that should be hashed when redacted.
interfaces/interfaces.go:181
↓ 3 callersTypeAliasHashFloat
HashFloat represents a floating-point value that should be hashed when redacted.
interfaces/interfaces.go:193
↓ 2 callersTypeAliasSafeFloat
SafeFloat represents a floating-point value that is not a sensitive value.
interfaces/interfaces.go:117
↓ 2 callersTypeAliasSafeInt
SafeInt represents an integer that is not a sensitive value.
interfaces/interfaces.go:105
↓ 2 callersTypeAliasSafeRune
SafeRune aliases rune. See the explanation for SafeString.
interfaces/interfaces.go:123
↓ 2 callersTypeAliasSafeUint
SafeUint represents an integer that is not a sensitive value.
interfaces/interfaces.go:111
↓ 1 callersTypeAliasHashByte
HashByte represents a byte that should be hashed when redacted.
interfaces/interfaces.go:205
↓ 1 callersTypeAliasHashBytes
HashBytes represents a byte slice that should be hashed when redacted.
interfaces/interfaces.go:211
↓ 1 callersTypeAliasHashRune
HashRune represents a rune that should be hashed when redacted.
interfaces/interfaces.go:199
↓ 1 callersTypeAliasHashUint
HashUint represents an unsigned integer that should be hashed when redacted.
interfaces/interfaces.go:187
↓ 1 callersTypeAliassafeint
markers_test.go:282
↓ 1 callersTypeAliassortableSlice
sortableSlice attaches the methods of sort.Interface to []RedactableString, sorting in increasing order.
util.go:58
StructBuffer
Buffer is a variable-sized buffer of bytes with a Write method. Writes are escaped in different ways depending on the output mode.
internal/buffer/buffer.go:30
StructConfig
otelprocessor/config.go:5
InterfaceFormatter
Formatter is implemented by any value that has a Format method. The implementation controls how State and rune are interpreted, and may call Sprint(f)
internal/rfmt/print.go:64
InterfaceGoStringer
GoStringer is implemented by any value that has a GoString method, which defines the Go syntax for that value. The GoString method is used to print va
internal/rfmt/print.go:82
InterfaceHashValue
HashValue is a marker interface to be implemented by types whose values should be hashed when redacted, instead of being replaced with the redaction m
interfaces/interfaces.go:170
TypeAliasOutputMode
OutputMode determines how writes are processed in the Buffer.
internal/buffer/buffer.go:38
TypeAliasSafeByte
SafeByte represents a byte that is not a sensitive value.
interfaces/interfaces.go:129
TypeAliasSafeBytes
SafeBytes represents a byte slice that is not a sensitive value.
interfaces/interfaces.go:135
InterfaceSafeFormatter
SafeFormatter is implemented by object types that want to separate safe and non-safe information when printed out by a Printf-like formatter.
interfaces/interfaces.go:22
InterfaceSafePrinter
SafePrinter is a stateful helper that abstracts an output stream in the context of printf-like formatting, but with the ability to separate safe and u
interfaces/interfaces.go:41
InterfaceSafeValue
SafeValue is a marker interface to be implemented by types that alias base Go types and whose natural representation via Printf is always safe for rep
interfaces/interfaces.go:157
InterfaceSafeWriter
SafeWriter provides helper functions for use in implementations of SafeFormatter, to format mixes of safe and unsafe strings.
interfaces/interfaces.go:52
StructSortedMap
Note: Throughout this package we avoid calling reflect.Value.Interface as it is not always legal to do so and it's easier to avoid the issue than to f
internal/rfmt/fmtsort/sort.go:23
InterfaceState
State represents the printer state passed to custom formatters. It provides access to the io.Writer interface plus information about the flags and opt
internal/rfmt/print.go:49
StructStringBuilder
StringBuilder accumulates strings with optional redaction markers. It implements io.Writer but marks direct writes as redactable. To distinguish safe
builder/builder.go:31
InterfaceStringer
Stringer is implemented by any value that has a String method, which defines the `native` format for that value. The String method is used to print va
internal/rfmt/print.go:74
StructTestConfig
otelprocessor/processor_test.go:13
StructUser
hash_redact_test.go:223
Structbuffer
CUSTOM: smarter buffer.
internal/rfmt/print.go:87
StructcomplexObj
markers_test.go:546
Structcompose
markers_test.go:270
Structfmt
A fmt is the raw formatter used by Printf etc. It prints into a buffer that must be set up separately.
internal/rfmt/format.go:44
StructfmtFlags
flags placed in a separate struct for easy clearing.
internal/rfmt/format.go:26
Structfmter
markers_test.go:639
Structfmtformatter
markers_test.go:564
StructformatTester
internal/fmtforward/make_format_test.go:43
FuncTypeformatterFn
func(format string, args ...interface{}) string
markers_test.go:387
StructhashRestorer
internal/rfmt/helpers.go:84
StructhasherState
hasherState holds a reusable hash.Hash and a pre-allocated Sum buffer. sumBuf must live in the pool because Sum() is an interface method — the compile
internal/markers/hash.go:59
StructmixedInts
markers_test.go:656
StructmixedRedactableBytes
markers_test.go:688
StructmixedRedactableString
markers_test.go:680
StructmixedSafe
markers_test.go:664
StructmixedSafeStringer
markers_test.go:672
TypeAliasoverrideMode
internal/rfmt/helpers.go:27
StructpanicObj1
markers_test.go:578
StructpanicObj2
markers_test.go:584
StructpanicObj3
markers_test.go:606
StructpanicObj4
markers_test.go:616
Structpp
pp is used to store a printer's state and is reused with sync.Pool to avoid allocations.
internal/rfmt/print.go:108
StructredactProcessor
otelprocessor/processor.go:11
Structrestorer
internal/rfmt/helpers.go:73
Structs
Also a struct containing the safe type.
internal/rfmt/registry_test.go:29
TypeAliassafeInt
markers_test.go:523
StructsafeNil
markers_test.go:648
StructsafeWrapper
internal/redact/wrappers.go:63
Structsafefmtformatter
markers_test.go:570
Structsafemsg
markers_test.go:612
StructsafepanicObj1
markers_test.go:590
StructsafepanicObj2
markers_test.go:598
Structsafestringer
markers_test.go:556
Structstringer
markers_test.go:550
StructunsafeWrap
internal/redact/wrappers.go:36