Skip to content

Commit

Permalink
release 0.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jbtrystram committed Jul 6, 2022
1 parent 5ce3295 commit c6cbc6f
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 21 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Version 0.10.0

## New features
- Added an interactive / terminal mode : start it with `drg --interactive`
- Added an `--insecure` flag for `drg stream` allowing to connect to servers using self-signed certificates (e.g. drogue-server)

## Misc. changes
- Added missing JSON output for `login`, `config` and `whoami`
- Added support for refreshing the auth token in `drg stream` to keep alive the connection

## Dependencies
- Updated to tungstenite 0.17.2
- updated to tiny_http 0.8.0

# Version 0.9.0

## New features
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "drg"
version = "0.9.0"
version = "0.10.0"
authors = ["Jean-Baptiste Trystram <[email protected]>"]
edition = "2021"
license = "Apache-2.0"
Expand Down
25 changes: 11 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ This will create an alias : "CN=<deviceId>, O=Drogue IoT, OU=<appId>" for the de

You can see the stream of events for a drogue-cloud application using :
```
drg stream <appId>
drg stream --app <appId>
# or if you have a default application set in your context :
drg stream
```
Expand All @@ -188,24 +188,21 @@ drg stream

You can create and manage access tokens with the admin subcommand :
```
drg admin token create
drg admin token list
drg admin token delete <prefix>
drg create token
drg create token --description "some text"
drg get token
drg delete token <prefix>
```

Drg can also transfer apps ownership and manage apps members :
```
drg admin member add <app> <user> --role reader
drg admin member list <app>
drg admin member edit <app>
drg create member <user> --role reader --application <app>
drg get member
drg edit member
#Transfer operations
drg admin transfer init <app> <newOwnerUSername>
drg admin transfer cancel <app>
drg transfer init <newOwnerUSername> --application <appId>
drg transfer cancel
# The new owner can accept the transfer :
drg admin transfer accept <app>
drg transfer accept <app>
```


In no particular order here are the following things that we would like to add to `drg` :
* Json patch operations
2 changes: 0 additions & 2 deletions docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,3 @@ Set default properties:
- Version information: `drg version`
- Print cluster address, version and default app(if any): `drg whoami`


![img.png](img.png)
3 changes: 1 addition & 2 deletions src/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,7 @@ fn insecure_stream(
) -> Result<(tungstenite::Connector, TcpStream)> {
let connector = TlsConnector::builder()
.danger_accept_invalid_certs(true)
.build()
.unwrap();
.build()?;

let stream = TcpStream::connect(address.as_slice())?;
let connector: tungstenite::Connector = tungstenite::Connector::NativeTls(connector);
Expand Down
2 changes: 1 addition & 1 deletion src/util/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ use tempfile::Builder;
use url::Url;

pub const VERSION: &str = crate_version!();
pub const COMPATIBLE_DROGUE_VERSION: &str = "0.9.0";
pub const COMPATIBLE_DROGUE_VERSION: &str = "0.10.0";

pub fn show_json(payload: &Value) {
write_colored_json(payload, &mut stdout().lock()).ok();
Expand Down

0 comments on commit c6cbc6f

Please sign in to comment.