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

Function NewCommitStore

private/bufpkg/bufmodule/bufmodulestore/commit_store.go:70–76  ·  view source on GitHub ↗

NewCommitStore returns a new CommitStore for the given bucket. It is assumed that the CommitStore has complete control of the bucket. This is typically used to interact with a cache directory.

(
	logger *slog.Logger,
	bucket storage.ReadWriteBucket,
	locker filelock.Locker,
)

Source from the content-addressed store, hash-verified

68//
69// This is typically used to interact with a cache directory.
70func NewCommitStore(
71 logger *slog.Logger,
72 bucket storage.ReadWriteBucket,
73 locker filelock.Locker,
74) CommitStore {
75 return newCommitStore(logger, bucket, locker)
76}
77
78/// *** PRIVATE ***
79

Calls 1

newCommitStoreFunction · 0.85

Used in the wild real call sites across dependent graphs

searching dependent graphs…