MCPcopy Create free account
hub / github.com/pydio/cells / readableMetaForNode

Function readableMetaForNode

idm/meta/dao/sql/sql_test.go:61–73  ·  view source on GitHub ↗
(ctx context.Context, dao meta.DAO, nodeId string)

Source from the content-addressed store, hash-verified

59}
60
61func readableMetaForNode(ctx context.Context, dao meta.DAO, nodeId string) ([]*idm.UserMeta, error) {
62 subQA, _ := anypb.New(&idm.SearchUserMetaRequest{
63 NodeUuids: []string{nodeId},
64 })
65 rq, _ := anypb.New(&service.ResourcePolicyQuery{
66 Subjects: []string{"sub1"},
67 Action: service.ResourcePolicyAction_READ,
68 })
69 queryA := &service.Query{
70 SubQueries: []*anypb.Any{subQA, rq},
71 }
72 return dao.Search(ctx, queryA)
73}
74
75func TestCrud(t *testing.T) {
76

Callers 1

TestCrudFunction · 0.85

Calls 2

NewMethod · 0.65
SearchMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…