MCPcopy
hub / github.com/perkeep/perkeep / schema

Method schema

pkg/fs/fs.go:165–177  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

163}
164
165func (n *node) schema(ctx context.Context) (*schema.Blob, error) {
166 n.mu.Lock()
167 defer n.mu.Unlock()
168 if n.meta != nil {
169 return n.meta, nil
170 }
171 blob, err := n.fs.fetchSchemaMeta(ctx, n.blobref)
172 if err == nil {
173 n.meta = blob
174 n.populateAttr()
175 }
176 return blob, err
177}
178
179func isWriteFlags(flags fuse.OpenFlags) bool {
180 // TODO read/writeness are not flags, use O_ACCMODE

Callers 4

LookupMethod · 0.95
AttrMethod · 0.95
OpenMethod · 0.95
ReadDirAllMethod · 0.95

Calls 4

populateAttrMethod · 0.95
LockMethod · 0.80
UnlockMethod · 0.80
fetchSchemaMetaMethod · 0.80

Tested by

no test coverage detected