MCPcopy Create free account
hub / github.com/cloudwan/gohan / GetManager

Function GetManager

schema/manager.go:518–532  ·  view source on GitHub ↗

GetManager get manager

()

Source from the content-addressed store, hash-verified

516
517//GetManager get manager
518func GetManager() *Manager {
519 gohanFormatsRegisteredOnce.Do(func() {
520 registerGohanFormats(gojsonschema.FormatCheckers)
521 })
522
523 return singleton.Get("schema/manager", func() interface{} {
524 return &Manager{
525 schemas: make(Map),
526 schemaOrder: []string{},
527 namespaces: map[string]*Namespace{},
528 policies: []*Policy{},
529 Extensions: []*Extension{},
530 }
531 }).(*Manager)
532}
533
534//ClearManager clears manager
535func ClearManager() {

Callers 6

policy_test.goFile · 0.70
NewSchemaFromObjFunction · 0.70
GetSchemaByURLPathFunction · 0.70
GetSchemaByPathFunction · 0.70
schema_test.goFile · 0.70
resource_test.goFile · 0.70

Calls 2

registerGohanFormatsFunction · 0.85
GetMethod · 0.65

Tested by

no test coverage detected