-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(jb): observe ports status and send notification
- Loading branch information
Andrea Falzetti
committed
May 27, 2022
1 parent
6972cd5
commit 1e84823
Showing
5 changed files
with
213 additions
and
4 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
19 changes: 19 additions & 0 deletions
19
...pod-protocol/java/src/main/java/io/gitpod/gitpodprotocol/api/entities/PortVisibility.java
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,19 @@ | ||
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. | ||
// Licensed under the GNU Affero General Public License (AGPL). | ||
// See License-AGPL.txt in the project root for license information. | ||
|
||
package io.gitpod.gitpodprotocol.api.entities; | ||
|
||
public enum PortVisibility { | ||
PUBLIC("public"), PRIVATE("private"); | ||
|
||
private final String toString; | ||
|
||
private PortVisibility(String toString) { | ||
this.toString = toString; | ||
} | ||
|
||
public String toString() { | ||
return toString; | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
...tocol/java/src/main/java/io/gitpod/gitpodprotocol/api/entities/WorkspaceInstancePort.java
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,29 @@ | ||
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. | ||
// Licensed under the GNU Affero General Public License (AGPL). | ||
// See License-AGPL.txt in the project root for license information. | ||
|
||
package io.gitpod.gitpodprotocol.api.entities; | ||
|
||
public class WorkspaceInstancePort { | ||
private Number port; | ||
private String visibility; | ||
private String url; | ||
|
||
public void setPort(Number port) { | ||
this.port = port; | ||
} | ||
|
||
public void setVisibility(String visibility) { | ||
this.visibility = visibility; | ||
} | ||
|
||
public void setUrl(String url) { | ||
this.url = url; | ||
} | ||
|
||
public Number getPort() { return this.port; } | ||
|
||
public String getVisibility() { return this.visibility; } | ||
|
||
public String getUrl() { return this.url; } | ||
} |
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