forked from eclipse-che/che
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CHE-4097: Refactor go agents package structure (eclipse-che#4344)
Also add comments and cleanup code. Signed-off-by: Alexander Garagatyi <agaragatyi@codenvy.com>
- Loading branch information
Alexander Garagatyi
authored
Mar 9, 2017
1 parent
73c14ec
commit 2ac7b44
Showing
95 changed files
with
814 additions
and
618 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
src/main/go/exec-agent/exec-agent | ||
src/main/go/exec-agent/logs |
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,53 @@ | ||
Summary | ||
--- | ||
Golang based server for executing commands and streaming process output logs, | ||
also websocket-terminal. | ||
|
||
|
||
Requirements | ||
-- | ||
- golang 1.6+ | ||
|
||
|
||
Docs | ||
--- | ||
- jsonrpc2.0 based [Webscoket API](docs/ws_api.md) | ||
- jsonrpc2.0 based [Events](docs/events.md) | ||
- [REST API](docs/rest_api.md) | ||
|
||
Development | ||
--- | ||
|
||
##### Link the sources to standard go workspace | ||
|
||
```bash | ||
export CHE_PATH=~/code/che | ||
mkdir $GOPATH/src/github.com/eclipse/che/agents/go-agents/src/main -p | ||
ln -s $CHE_PATH/agents/go-agents/src/main/go $GOPATH/src/github.com/eclipse/che/agents/go-agents/src/main/go | ||
``` | ||
|
||
That's it, `$GOPATH/src/github.com/eclipse/che/agents/go-agents` project is ready. | ||
|
||
##### Building linked project | ||
|
||
```bash | ||
cd $GOPATH/src/github.com/eclipse/che/agents/go-agents/src/main/go && go build ./... | ||
``` | ||
|
||
#### Building exec agent executable | ||
|
||
```bash | ||
cd $GOPATH/src/github.com/eclipse/che/agents/go-agents/src/main/go/exec-agent && go build | ||
``` | ||
|
||
##### Running linked project tests | ||
|
||
```bash | ||
cd $GOPATH/src/github.com/eclipse/che/agents/go-agents/src/main/go && go test ./... | ||
``` | ||
|
||
##### Formatting linked project sources | ||
|
||
```bash | ||
cd $GOPATH/src/github.com/eclipse/che/agents/go-agents/src/main/go && go fmt ./... | ||
``` |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
Oops, something went wrong.