MCPcopy Create free account
hub / github.com/koding/kite / getAudience

Function getAudience

kontrol/etcd.go:374–382  ·  view source on GitHub ↗
(q *protocol.KontrolQuery)

Source from the content-addressed store, hash-verified

372}
373
374func getAudience(q *protocol.KontrolQuery) string {
375 if q.Name != "" {
376 return "/" + q.Username + "/" + q.Environment + "/" + q.Name
377 } else if q.Environment != "" {
378 return "/" + q.Username + "/" + q.Environment
379 } else {
380 return "/" + q.Username
381 }
382}

Callers 2

HandleGetKitesMethod · 0.85
HandleGetTokenMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected