INNER CODE UNIT · Go

FromReader

opencontainers/image-spec · identity/helpers.go:28

func FromReader(rd io.Reader) (digest.Digest, error) {
	return digest.Canonical.FromReader(rd)
}

// FromBytes digests the input and returns a Digest.
func FromBytes(p []byte) digest.Digest {
	return digest.Canonical.FromBytes(p)
}

// FromString digests the input and returns a Digest.
func FromString(s string) digest.Digest {
	return digest.Canonical.FromString(s)
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…