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

Struct KontrolQuery

protocol/protocol.go:197–205  ·  view source on GitHub ↗

KontrolQuery is a structure of message sent to Kontrol. It is used for querying kites based on the incoming field parameters. Missing fields are not counted during the query (for example if the "version" field is empty, any kite with different version is going to be matched). Order of the fields is

Source from the content-addressed store, hash-verified

195// any kite with different version is going to be matched).
196// Order of the fields is from general to specific.
197type KontrolQuery struct {
198 Username string `json:"username"`
199 Environment string `json:"environment"`
200 Name string `json:"name"`
201 Version string `json:"version"`
202 Region string `json:"region"`
203 Hostname string `json:"hostname"`
204 ID string `json:"id"`
205}
206
207func (k KontrolQuery) Fields() map[string]string {
208 return map[string]string{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected