MCPcopy
hub / github.com/weaviate/weaviate / resolveNS

Method resolveNS

usecases/objects/manager.go:191–193  ·  view source on GitHub ↗

resolveNS qualifies name with the principal's namespace (if enabled) and resolves any alias to its underlying class.

(principal *models.Principal, name string)

Source from the content-addressed store, hash-verified

189// resolveNS qualifies name with the principal's namespace (if enabled)
190// and resolves any alias to its underlying class.
191func (m *Manager) resolveNS(principal *models.Principal, name string) (class, qualifiedAlias string, err error) {
192 return namespacing.Resolve(principal, m.schemaManager, m.config.Config.Namespaces.Enabled, name)
193}
194
195func generateUUID() (strfmt.UUID, error) {
196 id, err := uuid.NewRandom()

Callers 12

QueryMethod · 0.95
DeleteObjectReferenceMethod · 0.95
UpdateObjectMethod · 0.95
DeleteObjectMethod · 0.95
HeadObjectMethod · 0.95
ValidateObjectMethod · 0.95
MergeObjectMethod · 0.95
AddObjectReferenceMethod · 0.95
AddObjectMethod · 0.95
GetObjectMethod · 0.95

Calls 1

ResolveFunction · 0.92

Tested by

no test coverage detected