MCPcopy
hub / github.com/charmbracelet/soft-serve / LFSStore

Interface LFSStore

pkg/store/lfs.go:11–28  ·  view source on GitHub ↗

LFSStore is the interface for the LFS store.

Source from the content-addressed store, hash-verified

9
10// LFSStore is the interface for the LFS store.
11type LFSStore interface {
12 CreateLFSObject(ctx context.Context, h db.Handler, repoID int64, oid string, size int64) error
13 GetLFSObjectByOid(ctx context.Context, h db.Handler, repoID int64, oid string) (models.LFSObject, error)
14 GetLFSObjects(ctx context.Context, h db.Handler, repoID int64) ([]models.LFSObject, error)
15 GetLFSObjectsByName(ctx context.Context, h db.Handler, name string) ([]models.LFSObject, error)
16 DeleteLFSObjectByOid(ctx context.Context, h db.Handler, repoID int64, oid string) error
17
18 CreateLFSLockForUser(ctx context.Context, h db.Handler, repoID int64, userID int64, path string, refname string) error
19 GetLFSLocks(ctx context.Context, h db.Handler, repoID int64, page int, limit int) ([]models.LFSLock, error)
20 GetLFSLocksWithCount(ctx context.Context, h db.Handler, repoID int64, page int, limit int) ([]models.LFSLock, int64, error)
21 GetLFSLocksForUser(ctx context.Context, h db.Handler, repoID int64, userID int64) ([]models.LFSLock, error)
22 GetLFSLockForPath(ctx context.Context, h db.Handler, repoID int64, path string) (models.LFSLock, error)
23 GetLFSLockForUserPath(ctx context.Context, h db.Handler, repoID int64, userID int64, path string) (models.LFSLock, error)
24 GetLFSLockByID(ctx context.Context, h db.Handler, id int64) (models.LFSLock, error)
25 GetLFSLockForUserByID(ctx context.Context, h db.Handler, repoID int64, userID int64, id int64) (models.LFSLock, error)
26 DeleteLFSLock(ctx context.Context, h db.Handler, repoID int64, id int64) error
27 DeleteLFSLockForUserByID(ctx context.Context, h db.Handler, repoID int64, userID int64, id int64) error
28}

Callers 28

BatchMethod · 0.65
UploadMethod · 0.65
serviceLfsBatchFunction · 0.65
serviceLfsBasicUploadFunction · 0.65
BatchMethod · 0.65
VerifyMethod · 0.65
serviceLfsBatchFunction · 0.65
serviceLfsBasicDownloadFunction · 0.65
serviceLfsBasicUploadFunction · 0.65
serviceLfsBasicVerifyFunction · 0.65

Implementers 1

lfsStorepkg/store/database/lfs.go

Calls

no outgoing calls

Tested by

no test coverage detected