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

Struct Kite

protocol/protocol.go:17–43  ·  view source on GitHub ↗

Kite is the base struct containing the public fields. It is usually embedded in other structs, including the db model. The access model is in the form: username.environment.name.version.region.hostname.id

Source from the content-addressed store, hash-verified

15// in other structs, including the db model. The access model is in the form:
16// username.environment.name.version.region.hostname.id
17type Kite struct {
18 // Short name identifying the type of the kite. Example: fs, terminal...
19 Name string `json:"name"`
20
21 // Owner of the Kite
22 Username string `json:"username"`
23
24 // Every Kite instance has different identifier.
25 // If a kite is restarted, it's id will change.
26 // This is generated on the Kite.
27 ID string `json:"id"`
28
29 // Environment is defines as something like "production", "testing",
30 // "staging" or whatever. This allows you to differentiate between a
31 // cluster of kites.
32 Environment string `json:"environment"`
33
34 // Region of the kite it is running. Like "Europe", "Asia" or some other
35 // locations.
36 Region string `json:"region"`
37
38 // 3-digit semantic version.
39 Version string `json:"version"`
40
41 // os.Hostname() of the Kite.
42 Hostname string `json:"hostname"`
43}
44
45func (k Kite) String() string {
46 return "/" + k.Username +

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected