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

Function newModuleKeyNoValidate

private/bufpkg/bufmodule/module_key.go:137–147  ·  view source on GitHub ↗
(
	moduleFullName bufparse.FullName,
	commitID uuid.UUID,
	getDigest func() (Digest, error),
)

Source from the content-addressed store, hash-verified

135}
136
137func newModuleKeyNoValidate(
138 moduleFullName bufparse.FullName,
139 commitID uuid.UUID,
140 getDigest func() (Digest, error),
141) *moduleKey {
142 return &moduleKey{
143 moduleFullName: moduleFullName,
144 commitID: commitID,
145 getDigest: sync.OnceValues(getDigest),
146 }
147}
148
149func (m *moduleKey) FullName() bufparse.FullName {
150 return m.moduleFullName

Callers 2

newModuleKeyFunction · 0.85
newCommitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…