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

Method setMetaString

common/proto/tree/node.go:543–552  ·  view source on GitHub ↗

*PACKAGE PROTECTED METHODS */ setMetaString sets a metadata in string format

(namespace string, meta string)

Source from the content-addressed store, hash-verified

541
542// setMetaString sets a metadata in string format
543func (node *Node) setMetaString(namespace string, meta string) {
544 if node.MetaStore == nil {
545 node.MetaStore = make(map[string]string)
546 }
547 if meta == "" {
548 delete(node.MetaStore, namespace)
549 } else {
550 node.MetaStore[namespace] = meta
551 }
552}
553
554// getMetaString gets a metadata string
555func (node *Node) getMetaString(namespace string) (meta string) {

Callers 1

TestNodeMetaFunction · 0.95

Calls 1

makeFunction · 0.85

Tested by 1

TestNodeMetaFunction · 0.76