Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HashZip ¶
HashZip returns the sumdb dirhash of the file content in the named zip file. Only the file names and their contents are included in the hash: the exact zip file format encoding, compression method, per-file modification times, and other metadata are ignored. If fix is non-nil, it is applied to the file contents before hashing it, allowing you to strip code signatures that cannot be reproduced.
func StripDarwinSig ¶
StripDarwinSig parses data as a Mach-O executable, strips the macOS code signature from it, and returns the resulting Mach-O executable. It edits data directly, in addition to returning a shortened version. If data is not a Mach-O executable, StripDarwinSig silently returns it unaltered.
Types ¶
type HashFixer ¶
A HashFixer is a transformation on file content applied during hashing. It lets us edit away permissible differences between files, such as code signatures that cannot be reproduced without the signing keys.
func HashFixerFor ¶
type Version ¶
Version uniquely identifies a built toolchain
func ParseModVersion ¶
ParseModVersion parses a golang.org/toolchain module version
func (Version) ModVersion ¶
ModVersion returns the corresponding golang.org/toolchain module version
func (Version) ZipFilename ¶
ZipFilename returns the filename of the golang.org/toolchain module version