MCPcopy Create free account
hub / github.com/OpenListTeam/OpenList / Get

Function Get

internal/sharing/sharing.go:19–26  ·  view source on GitHub ↗
(ctx context.Context, sid, path string, args model.SharingListArgs)

Source from the content-addressed store, hash-verified

17}
18
19func Get(ctx context.Context, sid, path string, args model.SharingListArgs) (*model.Sharing, model.Obj, error) {
20 sharing, res, err := get(ctx, sid, path, args)
21 if err != nil {
22 log.Warnf("failed get sharing %s/%s: %s", sid, path, err)
23 return nil, nil, err
24 }
25 return sharing, res, nil
26}
27
28func ArchiveMeta(ctx context.Context, sid, path string, args model.SharingArchiveMetaArgs) (*model.Sharing, *model.ArchiveMetaProvider, error) {
29 sharing, res, err := archiveMeta(ctx, sid, path, args)

Callers 1

SharingGetFunction · 0.92

Calls 1

getFunction · 0.70

Tested by

no test coverage detected