Documentation
¶
Overview ¶
Package objectid provides utilities around object IDs and hash algorithms.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidAlgorithm indicates an unsupported object ID algorithm. ErrInvalidAlgorithm = errors.New("objectid: invalid algorithm") // ErrInvalidObjectID indicates malformed object ID data. ErrInvalidObjectID = errors.New("objectid: invalid object id") )
Functions ¶
This section is empty.
Types ¶
type Algorithm ¶
type Algorithm uint8
Algorithm identifies the hash algorithm used for Git object IDs.
func ParseAlgorithm ¶
ParseAlgorithm parses a canonical algorithm name (e.g. "sha1", "sha256").
func SupportedAlgorithms ¶
func SupportedAlgorithms() []Algorithm
SupportedAlgorithms returns all object ID algorithms supported by furgit. Do not mutate.
type ObjectID ¶
type ObjectID struct {
// contains filtered or unexported fields
}
ObjectID represents a Git object ID.
Click to show internal directories.
Click to hide internal directories.