MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / ToPattern

Method ToPattern

gateway/apinto/auth/basic.go:19–24  ·  view source on GitHub ↗
(cfg map[string]interface{})

Source from the content-addressed store, hash-verified

17}
18
19func (b *Basic) ToPattern(cfg map[string]interface{}) interface{} {
20 result := make(map[string]interface{})
21 result["username"] = cfg["user_name"]
22 result["password"] = cfg["password"]
23 return result
24}
25
26func (b *Basic) ToConfig(cfg map[string]interface{}) interface{} {
27 return nil

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected