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

Function newModuleKey

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

Source from the content-addressed store, hash-verified

121}
122
123func newModuleKey(
124 moduleFullName bufparse.FullName,
125 commitID uuid.UUID,
126 getDigest func() (Digest, error),
127) (*moduleKey, error) {
128 if moduleFullName == nil {
129 return nil, errors.New("nil FullName when constructing ModuleKey")
130 }
131 if commitID == uuid.Nil {
132 return nil, errors.New("empty commitID when constructing ModuleKey")
133 }
134 return newModuleKeyNoValidate(moduleFullName, commitID, getDigest), nil
135}
136
137func newModuleKeyNoValidate(
138 moduleFullName bufparse.FullName,

Callers 2

NewModuleKeyFunction · 0.85
ModuleToModuleKeyFunction · 0.85

Calls 1

newModuleKeyNoValidateFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…