MCPcopy Create free account

hub / github.com/opencontainers/go-digest / functions

Functions72 in github.com/opencontainers/go-digest

↓ 11 callersMethodAdd
Add adds the given digest to the set. An error will be returned if the given digest is invalid. If the digest already exists in the set, this operatio
digestset/set.go:128
↓ 11 callersMethodLookup
Lookup looks for a digest matching the given string representation. If no digests could be found ErrDigestNotFound will be returned with an empty dige
digestset/set.go:84
↓ 8 callersMethodAlgorithm
Algorithm returns the algorithm portion of the digest. This will panic if the underlying digest is not in a valid format.
digest.go:121
↓ 8 callersFunctionassertEqualShort
(t *testing.T, actual, expected string)
digestset/set_test.go:208
↓ 6 callersFunctioncreateDigests
(count int)
digestset/set_test.go:248
↓ 5 callersFunctionNewSet
NewSet creates an empty set of digests which may have digests added.
digestset/set.go:54
↓ 5 callersMethodString
()
digest.go:145
↓ 5 callersFunctionassertEqualDigests
(t *testing.T, d1, d2 digest.Digest)
digestset/set_test.go:28
↓ 4 callersMethodDigest
provides direct access to underlying hash instance.
digester.go:25
↓ 4 callersMethodEncoded
Encoded returns the encoded portion of the digest. This will panic if the underlying digest is not in a valid format.
digest.go:136
↓ 4 callersMethodHash
()
digester.go:24
↓ 3 callersMethodAvailable
Available returns true if the digest type is available for use. If this returns false, Digester and Hash will return nil.
algorithm.go:67
↓ 3 callersMethodFromBytes
FromBytes digests the input and returns a Digest.
algorithm.go:158
↓ 3 callersMethodHex
Hex is deprecated. Please use Digest.Encoded.
digest.go:141
↓ 3 callersFunctionNewDigestFromEncoded
NewDigestFromEncoded returns a Digest from alg and the encoded digest.
digest.go:58
↓ 3 callersFunctionShortCodeTable
ShortCodeTable returns a map of Digest to unique short codes. The length represents the minimum value, the maximum length may be the entire value of d
digestset/set.go:203
↓ 3 callersMethodValidate
Validate checks that the contents of d is a valid digest, returning an error if not.
digest.go:103
↓ 3 callersMethodWrite
(p []byte)
verifiers.go:40
↓ 3 callersFunctionbenchAddNTable
(b *testing.B, n int)
digestset/set_test.go:261
↓ 3 callersFunctionbenchLookupNTable
(b *testing.B, n int, shortLen int)
digestset/set_test.go:277
↓ 3 callersFunctionbenchRemoveNTable
(b *testing.B, n int)
digestset/set_test.go:301
↓ 3 callersFunctionbenchShortCodeNTable
(b *testing.B, n int, shortLen int)
digestset/set_test.go:324
↓ 3 callersFunctioncheckShortMatch
checkShortMatch checks whether two digests match as either whole values or short values. This function does not test equality, rather whether the seco
digestset/set.go:64
↓ 2 callersMethodDigester
Digester returns a new digester for the specified algorithm. If the algorithm does not have a digester implementation, nil will be returned. This can
algorithm.go:109
↓ 2 callersFunctionFromBytes
FromBytes digests the input and returns a Digest.
digest.go:92
↓ 2 callersMethodFromReader
FromReader returns the digest of the reader using the algorithm.
algorithm.go:147
↓ 2 callersMethodFromString
FromString digests the string input and returns a Digest.
algorithm.go:174
↓ 2 callersFunctionNewDigest
NewDigest returns a Digest from alg and a hash.Hash object.
digest.go:40
↓ 2 callersFunctionParse
Parse parses s and returns the validated digest object. An error will be returned if the format is invalid.
digest.go:81
↓ 2 callersMethodRemove
Remove removes the given digest from the set. An err will be returned if the given digest is invalid. If the digest does not exist in the set, this op
digestset/set.go:159
↓ 2 callersMethodVerifier
Verifier returns a writer object that can be used to verify a stream of content against the digest. If the digest is invalid, the method will panic.
digest.go:127
↓ 2 callersMethodsepIndex
()
digest.go:149
↓ 1 callersMethodAll
All returns all the digests in the set
digestset/set.go:187
↓ 1 callersMethodEncode
Encode encodes the raw bytes of a digest, typically from a hash.Hash, into the encoded portion of the digest.
algorithm.go:140
↓ 1 callersFunctionFromReader
FromReader consumes the content of rd until io.EOF, returning canonical digest.
digest.go:87
↓ 1 callersFunctionFromString
FromString digests the input and returns a Digest.
digest.go:97
↓ 1 callersMethodHash
Hash returns a new hash as used by the algorithm. If not available, the method will panic. Check Algorithm.Available() before calling.
algorithm.go:118
↓ 1 callersFunctionNewDigestFromBytes
NewDigestFromBytes returns a new digest from the byte contents of p. Typically, this can come from hash.Hash.Sum(...) or xxx.SumXXX(...) functions. Th
digest.go:48
↓ 1 callersMethodSize
Size returns number of bytes returned by the hash.
algorithm.go:82
↓ 1 callersMethodVerified
Verified will return true if the content written to Verifier matches the digest.
verifiers.go:32
FunctionBenchmarkAdd10
(b *testing.B)
digestset/set_test.go:342
FunctionBenchmarkAdd100
(b *testing.B)
digestset/set_test.go:346
FunctionBenchmarkAdd1000
(b *testing.B)
digestset/set_test.go:350
FunctionBenchmarkLookup10
(b *testing.B)
digestset/set_test.go:366
FunctionBenchmarkLookup100
(b *testing.B)
digestset/set_test.go:370
FunctionBenchmarkLookup1000
(b *testing.B)
digestset/set_test.go:374
FunctionBenchmarkRemove10
(b *testing.B)
digestset/set_test.go:354
FunctionBenchmarkRemove100
(b *testing.B)
digestset/set_test.go:358
FunctionBenchmarkRemove1000
(b *testing.B)
digestset/set_test.go:362
FunctionBenchmarkShortCode10
(b *testing.B)
digestset/set_test.go:378
FunctionBenchmarkShortCode100
(b *testing.B)
digestset/set_test.go:381
FunctionBenchmarkShortCode1000
(b *testing.B)
digestset/set_test.go:384
MethodDigest
()
digester.go:38
MethodHash
()
digester.go:34
MethodLen
()
digestset/set.go:249
MethodLess
(i, j int)
digestset/set.go:253
FunctionNewDigestFromHex
NewDigestFromHex is deprecated. Please use NewDigestFromEncoded.
digest.go:53
MethodSet
Set implemented to allow use of Algorithm as a command line flag.
algorithm.go:91
MethodString
()
algorithm.go:77
MethodSwap
(i, j int)
digestset/set.go:260
FunctionTestAddDuplication
(t *testing.T)
digestset/set_test.go:108
FunctionTestAll
(t *testing.T)
digestset/set_test.go:178
FunctionTestDigestVerifier
(t *testing.T)
verifiers_test.go:26
FunctionTestFlagInterface
(t *testing.T)
algorithm_test.go:29
FunctionTestFroms
(t *testing.T)
algorithm_test.go:79
FunctionTestLookup
(t *testing.T)
digestset/set_test.go:34
FunctionTestParseDigest
(t *testing.T)
digest_test.go:22
FunctionTestRemove
(t *testing.T)
digestset/set_test.go:148
FunctionTestShortCodeTable
(t *testing.T)
digestset/set_test.go:214
FunctionTestVerifierUnsupportedDigest
TestVerifierUnsupportedDigest ensures that unsupported digest validation is flowing through verifier creation.
verifiers_test.go:42
MethodValidate
Validate validates the encoded portion string
algorithm.go:179
MethodVerified
()
verifiers.go:44