MCPcopy Create free account
hub / github.com/gogs/gogs / CreateLFSObject

Method CreateLFSObject

internal/route/lfs/store.go:83–85  ·  view source on GitHub ↗
(ctx context.Context, repoID int64, oid lfsutil.OID, size int64, storage lfsutil.Storage)

Source from the content-addressed store, hash-verified

81}
82
83func (*store) CreateLFSObject(ctx context.Context, repoID int64, oid lfsutil.OID, size int64, storage lfsutil.Storage) error {
84 return database.Handle.LFS().CreateObject(ctx, repoID, oid, size, storage)
85}
86
87func (*store) GetLFSObjectByOID(ctx context.Context, repoID int64, oid lfsutil.OID) (*database.LFSObject, error) {
88 return database.Handle.LFS().GetObjectByOID(ctx, repoID, oid)

Callers

nothing calls this directly

Calls 2

CreateObjectMethod · 0.80
LFSMethod · 0.80

Tested by

no test coverage detected