MCPcopy
hub / github.com/minio/minio-go / Encoded

Method Encoded

checksum.go:382–387  ·  view source on GitHub ↗

Encoded returns the encoded value. Returns the empty string if not set or valid.

()

Source from the content-addressed store, hash-verified

380// Encoded returns the encoded value.
381// Returns the empty string if not set or valid.
382func (c Checksum) Encoded() string {
383 if !c.IsSet() {
384 return ""
385 }
386 return base64.StdEncoding.EncodeToString(c.r)
387}
388
389// Raw returns the raw checksum value if set.
390func (c Checksum) Raw() []byte {

Callers 6

TestFullObjectChecksum64Function · 0.80
SetChecksumMethod · 0.80
applyAutoChecksumFunction · 0.80
testTrailingChecksumsFunction · 0.80
testPresignedPostPolicyFunction · 0.80

Calls 2

IsSetMethod · 0.95
EncodeToStringMethod · 0.80

Tested by 1

TestFullObjectChecksum64Function · 0.64