MCPcopy
hub / github.com/hashicorp/go-getter / String

Method String

checksum.go:33–35  ·  view source on GitHub ↗

String returns the hash type and the hash separated by a colon, for example: "md5:090992ba9fd140077b0661cb75f7ce13" "sha1:ebfb681885ddf1234c18094a45bbeafd91467911"

()

Source from the content-addressed store, hash-verified

31// "md5:090992ba9fd140077b0661cb75f7ce13"
32// "sha1:ebfb681885ddf1234c18094a45bbeafd91467911"
33func (c *FileChecksum) String() string {
34 return c.Type + ":" + hex.EncodeToString(c.Value)
35}
36
37// A ChecksumError is returned when a checksum differs
38type ChecksumError struct {

Callers 15

TestFileChecksum_StringFunction · 0.45
runSmbClientCommandMethod · 0.45
TestAddAuthFromNetrcFunction · 0.45
DetectFunction · 0.45
GetMethod · 0.45
cloneMethod · 0.45
TestHttpGetter_headerFunction · 0.45
TestHttpGetter_metaFunction · 0.45

Calls

no outgoing calls

Tested by 15

TestFileChecksum_StringFunction · 0.36
TestAddAuthFromNetrcFunction · 0.36
TestHttpGetter_headerFunction · 0.36
TestHttpGetter_metaFunction · 0.36
TestHttpGetter_noneFunction · 0.36
TestHttpGetter_resumeFunction · 0.36