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

Method GetStringMeta

common/proto/tree/node.go:296–302  ·  view source on GitHub ↗

GetStringMeta easily returns the string value of the MetaData for this key or an empty string if the MetaData for this key is not defined

(namespace string)

Source from the content-addressed store, hash-verified

294// GetStringMeta easily returns the string value of the MetaData for this key
295// or an empty string if the MetaData for this key is not defined
296func (node *Node) GetStringMeta(namespace string) string {
297 var value string
298 if e := node.GetMeta(namespace, &value); e != nil {
299 return ""
300 }
301 return value
302}
303
304// HasMetaKey checks if a metaData with this key has been defined
305func (node *Node) HasMetaKey(keyName string) bool {

Callers 7

RunMethod · 0.95
RecommendMethod · 0.95
LegacyMetaMethod · 0.95
MultipartCompleteMethod · 0.95
MultipartAbortMethod · 0.95

Calls 1

GetMetaMethod · 0.95

Tested by

no test coverage detected