MCPcopy Create free account
hub / github.com/bufbuild/buf / NewCommitKey

Function NewCommitKey

private/bufpkg/bufmodule/commit_key.go:54–64  ·  view source on GitHub ↗

NewCommitKey returns a new CommitKey.

(
	registry string,
	commitID uuid.UUID,
	digestType DigestType,
)

Source from the content-addressed store, hash-verified

52
53// NewCommitKey returns a new CommitKey.
54func NewCommitKey(
55 registry string,
56 commitID uuid.UUID,
57 digestType DigestType,
58) (CommitKey, error) {
59 return newCommitKey(
60 registry,
61 commitID,
62 digestType,
63 )
64}
65
66// UniqueDigestTypeForCommitKeys returns the single DigestType for the Digests on the CommitKeys.
67//

Callers 4

upgradeModuleKeysToB5Method · 0.92
addModuleMethod · 0.92
ToModuleMethod · 0.85

Calls 1

newCommitKeyFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…