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

Struct module

private/bufpkg/bufmodule/module.go:230–249  ·  view source on GitHub ↗

*** PRIVATE *** module

Source from the content-addressed store, hash-verified

228// module
229
230type module struct {
231 ModuleReadBucket
232
233 ctx context.Context
234 getBucket func() (storage.ReadBucket, error)
235 bucketID string
236 description string
237 moduleFullName bufparse.FullName
238 commitID uuid.UUID
239 isTarget bool
240 isLocal bool
241 getV1BufYAMLObjectData func() (ObjectData, error)
242 getV1BufLockObjectData func() (ObjectData, error)
243 getDepModuleKeysB5 func() ([]ModuleKey, error)
244
245 moduleSet ModuleSet
246
247 digestTypeToGetDigest map[DigestType]func() (Digest, error)
248 getModuleDeps func() ([]ModuleDep, error)
249}
250
251// must set ModuleReadBucket after constructor via setModuleReadBucket
252func newModule(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected