Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/koding/kite
/ functions
Functions
619 in github.com/koding/kite
⨍
Functions
619
◇
Types & classes
124
↓ 1 callers
Method
FinalFunc
FinalFunc registers a function that is always called as a last one after pre-, handler and post- functions. It receives a result and an error from la
method.go:203
↓ 1 callers
Method
Flatten
Flatten converts the recursive etcd directory structure to a flat one that contains all kontrolNodes
kontrol/node.go:33
↓ 1 callers
Function
GenerateKeyPair
GenerateKeyPair
kitetest/kitetest.go:77
↓ 1 callers
Function
Get
()
config/config.go:168
↓ 1 callers
Method
Get
()
systeminfo/systeminfo_linux.go:35
↓ 1 callers
Method
GetCallback
(id uint64)
dnode/scrubber.go:30
↓ 1 callers
Method
GetKeyFromID
(id string)
kontrol/keypair.go:109
↓ 1 callers
Method
GetKeyFromPublic
(public string)
kontrol/keypair.go:123
↓ 1 callers
Method
GetKeyFromPublic
(public string)
kontrol/postgres.go:470
↓ 1 callers
Method
GetSessionState
GetSessionState gives state of the session.
sockjsclient/xhr.go:164
↓ 1 callers
Method
GetTokenForce
GetTokenForce is used to obtain a new token for the given kite. It always returns a new token and forces a Kontrol to forget about any previous ones.
kontrolclient.go:224
↓ 1 callers
Method
HasValue
HasValue returns true if the give node has a non-empty value
kontrol/node.go:27
↓ 1 callers
Method
Hello
(remote *HelloKite)
kontrol/helper_test.go:184
↓ 1 callers
Method
Help
()
kitectl/command/uninstall.go:29
↓ 1 callers
Method
Help
()
kitectl/command/tell.go:32
↓ 1 callers
Method
Help
()
kitectl/command/run.go:27
↓ 1 callers
Method
IP
()
examples/math/config.go:31
↓ 1 callers
Method
InitializeSelf
InitializeSelf registers his host by writing a key to ~/.kite/kite.key
kontrol/kontrol.go:351
↓ 1 callers
Method
IsValid
IsValid returns true if f represents a Function. It returns false if f is the zero Value.
dnode/callback.go:27
↓ 1 callers
Function
JoinStreams
(local, remote io.ReadWriteCloser)
tunnelproxy/tunnel.go:46
↓ 1 callers
Function
KiteFromString
KiteFromString returns a new Kite string from the given string representation in the form of "/username/environment/...". It's the inverse of k.String
protocol/protocol.go:95
↓ 1 callers
Function
KiteHome
KiteHome returns the home path of Kite directory. The returned value can be overridden by setting KITE_HOME environment variable.
kitekey/kitekey.go:31
↓ 1 callers
Method
Kites
Kites returns a list of kites that are gathered by collecting recursively all nodes under the current node.
kontrol/node.go:96
↓ 1 callers
Method
KontrolKey
KontrolKey gives a Kontrol's public key. The value is taken form kite key's kontrolKey claim.
kite.go:255
↓ 1 callers
Method
ListenAndServeTLS
(certFile, keyFile string)
reverseproxy/reverseproxy.go:214
↓ 1 callers
Method
Map
Map is a helper method to unmarshal to a JSON Object.
dnode/partial.go:84
↓ 1 callers
Method
MustBool
()
dnode/partial.go:157
↓ 1 callers
Method
MustFunction
()
dnode/partial.go:163
↓ 1 callers
Function
New
()
systeminfo/systeminfo.go:41
↓ 1 callers
Function
New
(conf *config.Config)
reverseproxy/reverseproxy.go:49
↓ 1 callers
Function
New
New creates a new kontrol instance with the given version and config instance, and the default kontrol handlers. Publickey is used for validating toke
kontrol/kontrol.go:140
↓ 1 callers
Function
New
NewOnceEvery creates a new OnceEvery struct
kontrol/onceevery/onceevery.go:17
↓ 1 callers
Function
New
(conf *config.Config, version, pubKey, privKey string)
tunnelproxy/proxy.go:57
↓ 1 callers
Function
New
New returns a new Config initialized with defaults.
config/config.go:149
↓ 1 callers
Function
NewIdlock
New returns a new IdLock
kontrol/idlock.go:11
↓ 1 callers
Function
NewInstalledKite
(domain, user, repo, version string)
kitectl/command/list.go:120
↓ 1 callers
Function
NewKeysAPILogger
(kapi etcd.KeysAPI, log kite.Logger)
kontrol/etcd_keysapi_logger.go:15
↓ 1 callers
Function
NewKiteKey
NewKiteKey returns a new generated kite key. (Copied and modified from kontrol.go) If the host does not have a kite.key file kite.New() panics. This i
testutil/testutil.go:20
↓ 1 callers
Function
NewTokenRenewer
(r *Client, k *Kite)
tokenrenewer.go:30
↓ 1 callers
Function
NewWebRCTHandler
NewWebRCTHandler creates a new handler for web rtc signalling services.
handlers.go:34
↓ 1 callers
Function
NewWebsocketSession
NewWebsocketSession creates new sockjs.Session from existing websocket connection.
sockjsclient/sockjsclient.go:181
↓ 1 callers
Function
NewWithConfig
NewWithConfig builds a new kite value for the given configuration.
kite.go:168
↓ 1 callers
Function
NewWithoutHandlers
NewWithoutHandlers creates a new kontrol instance with the given version and config instance, but *without* the default handlers. If this is function
kontrol/kontrol.go:170
↓ 1 callers
Method
NextBackOff
()
client.go:1039
↓ 1 callers
Method
OnConnect
OnConnect adds a callback which is called when client connects to a remote kite.
client.go:611
↓ 1 callers
Method
OnTokenRenew
OnTokenRenew adds a callback which is called when client successfully renews its token.
client.go:635
↓ 1 callers
Method
ParsePayload
ParsePayload parses the payload if it is not parsed previously. This method can be called concurrently.
protocol/webrtc.go:50
↓ 1 callers
Function
ParseWebRTCSignalMessage
ParseWebRTCSignalMessage parses the web rtc command/message
protocol/webrtc.go:68
↓ 1 callers
Method
Port
()
examples/math/config.go:36
↓ 1 callers
Method
PostHandle
PostHandle adds a new kite handler which is executed after the method.
method.go:138
↓ 1 callers
Method
PostHandle
PostHandle registers an handler which is executed after a kite.Handler method is executed. Calling PostHandler multiple times registers multiple handl
method.go:189
↓ 1 callers
Method
PreHandle
PreHandler adds a new kite handler which is executed before the method.
method.go:126
↓ 1 callers
Method
PreHandle
PreHandle registers an handler which is executed before a kite.Handler method is executed. Calling PreHandle multiple times registers multiple handler
method.go:176
↓ 1 callers
Function
Read
Read the contents of the kite.key file.
kitekey/kitekey.go:52
↓ 1 callers
Method
ReadKiteKey
ReadKiteKey parsed the user's kite key and returns a new Config.
config/config.go:244
↓ 1 callers
Method
ReadyNotify
()
reverseproxy/reverseproxy.go:121
↓ 1 callers
Method
RegisterToProxy
RegisterToProxy is just like RegisterForever but registers the given URL to kontrol over a kite-proxy. A Kiteproxy is a reverseproxy that can be used
kontrolclient.go:412
↓ 1 callers
Method
RenewWhenExpires
RenewWhenExpires renews the token before it expires.
tokenrenewer.go:64
↓ 1 callers
Method
Run
(args []string)
kitectl/command/run.go:36
↓ 1 callers
Method
RunCleaner
RunCleaner deletes every "interval" duration rows which are older than "expire" duration based on the "updated_at" field. For more info check CleanExp
kontrol/postgres.go:93
↓ 1 callers
Method
ServeHTTP
ServeHTTP helps Kite to satisfy the http.Handler interface. So kite can be used as a standard http server.
kite.go:276
↓ 1 callers
Method
SetUsername
(username string)
client.go:227
↓ 1 callers
Method
StartNotify
()
tunnelproxy/tunnel.go:36
↓ 1 callers
Method
TellKontrolWithTimeout
TellKontrolWithTimeout is a lower level function for communicating directly with kontrol. Like GetKites and GetToken, this automatically sets up and c
kontrolclient.go:512
↓ 1 callers
Method
Throttle
Throttle throttles the method for each incoming request. The throttle algorithm is based on token bucket implementation: http://en.wikipedia.org/wiki/
method.go:111
↓ 1 callers
Method
Unscrub
(arguments interface{}, callbacks map[string]Path, f func(uint64) functionReceived)
dnode/unscrub.go:10
↓ 1 callers
Method
UseTLS
(certPEM, keyPEM string)
server.go:126
↓ 1 callers
Function
WaitTillConnected
(conf *Config, timeout time.Duration, hks ...*HelloKite)
kontrol/helper_test.go:282
↓ 1 callers
Method
WaitTokenExpired
(timeout time.Duration)
kontrol/helper_test.go:158
↓ 1 callers
Method
WaitTokenRenew
(timeout time.Duration)
kontrol/helper_test.go:171
↓ 1 callers
Method
addDefaultHandlers
()
handlers.go:83
↓ 1 callers
Method
authCopy
()
client.go:294
↓ 1 callers
Method
authenticate
authenticate tries to authenticate the user by selecting appropriate authenticator function.
request.go:182
↓ 1 callers
Method
backend
(req *http.Request)
reverseproxy/reverseproxy.go:145
↓ 1 callers
Method
cacheToken
cacheToken cached the signed token under the given key. It also ensures the token is invalidated after its expiration time. If the token was already
kontrol/kontrol.go:543
↓ 1 callers
Method
callOnConnectHandlers
(c *Client)
kite.go:333
↓ 1 callers
Method
callOnDisconnectHandlers
(c *Client)
kite.go:357
↓ 1 callers
Method
callOnFirstRequestHandlers
(c *Client)
kite.go:345
↓ 1 callers
Method
callOnTokenExpireHandlers
callOnTokenExpireHandlers calls registered functions when an error from remote kite is received that token used is expired.
client.go:669
↓ 1 callers
Method
callOnTokenRenewHandlers
callOnTokenRenewHandlers calls all registered functions when we successfully obtain new token from kontrol.
client.go:683
↓ 1 callers
Method
cancelWatcher
(watcherID string)
kontrol/_watcher.go:24
↓ 1 callers
Method
client
()
sockjsclient/sockjsclient.go:123
↓ 1 callers
Method
context
()
client.go:288
↓ 1 callers
Function
defaultKiteClient
()
kitectl/command/default.go:20
↓ 1 callers
Function
defaultUi
()
kitectl/command/default.go:24
↓ 1 callers
Function
diskStats
()
systeminfo/systeminfo_unix.go:7
↓ 1 callers
Method
do
(req *http.Request)
sockjsclient/xhr.go:315
↓ 1 callers
Method
etcdKey
(query *protocol.KontrolQuery)
kontrol/etcd.go:275
↓ 1 callers
Function
exists
exists returns whether the given file or directory exists or not.
kitectl/command/uninstall.go:92
↓ 1 callers
Function
extractTar
extractTar reads from the io.Reader and writes the files into the directory.
kitectl/command/install.go:189
↓ 1 callers
Function
getBinaryURL
(manifest map[string]interface{})
kitectl/command/install.go:158
↓ 1 callers
Method
getDst
(dst string)
handlers.go:50
↓ 1 callers
Method
getKites
used internally for GetKites() and WatchKites()
kontrolclient.go:142
↓ 1 callers
Function
getManifest
(repoName string)
kitectl/command/install.go:122
↓ 1 callers
Function
getVersion
(manifest map[string]interface{})
kitectl/command/install.go:179
↓ 1 callers
Method
handleResp
(resp *http.Response)
sockjsclient/xhr.go:176
↓ 1 callers
Method
hello
(remote *HelloKite, force bool)
kontrol/helper_test.go:188
↓ 1 callers
Function
homeDir
()
systeminfo/systeminfo.go:32
↓ 1 callers
Method
id
()
kitetest/kitetest.go:35
↓ 1 callers
Function
initialKey
(kontrolConf *Kontrol, publicKey, privateKey []byte)
kontrol/kontrol/main.go:107
← previous
next →
201–300 of 619, ranked by callers