-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #417 from wttech/feature/376-381-412
Features 376 381 412
- Loading branch information
Showing
50 changed files
with
867 additions
and
236 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"logLines": [ | ||
"02:49:12 127.0.0.1 GET / 200", | ||
"02:49:35 127.0.0.1 GET /index.html 200", | ||
"03:01:06 127.0.0.1 GET /images/sponsered.gif 304", | ||
"03:52:36 127.0.0.1 GET /search.php 200", | ||
"04:17:03 127.0.0.1 GET /admin/style.css 200", | ||
"05:04:54 127.0.0.1 GET /favicon.ico 404", | ||
"05:38:07 127.0.0.1 GET /js/ads.js 200" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,5 @@ package com.cognifide.cogboard.ssh.auth | |
|
||
enum class AuthenticationType { | ||
BASIC, | ||
TOKEN, | ||
SSH_KEY | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 0 additions & 52 deletions
52
cogboard-app/src/main/kotlin/com/cognifide/cogboard/widget/SSHWidget.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
...pp/src/main/kotlin/com/cognifide/cogboard/widget/connectionStrategy/ConnectionStrategy.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.cognifide.cogboard.widget.connectionStrategy | ||
|
||
import com.cognifide.cogboard.CogboardConstants | ||
import com.cognifide.cogboard.http.auth.AuthenticationType | ||
import io.vertx.core.Vertx | ||
import io.vertx.core.eventbus.MessageConsumer | ||
import io.vertx.core.json.JsonObject | ||
|
||
abstract class ConnectionStrategy(protected val vertx: Vertx, protected val eventBusAddress: String) { | ||
protected fun JsonObject.endpointProp(prop: String): String { | ||
return this.getJsonObject(CogboardConstants.Props.ENDPOINT_LOADED)?.getString(prop) ?: "" | ||
} | ||
|
||
protected open fun authenticationTypes(): Set<AuthenticationType> { | ||
return setOf(AuthenticationType.BASIC) | ||
} | ||
|
||
abstract fun sendRequest(address: String, arguments: JsonObject) | ||
|
||
abstract fun getConsumer(eventBusAddress: String): MessageConsumer<*> | ||
|
||
abstract fun handleResponse(response: Any): String | ||
} |
Oops, something went wrong.