Skip to content

Commit

Permalink
Rename energomonitor to energostack
Browse files Browse the repository at this point in the history
  • Loading branch information
janvrska committed Jun 11, 2024
1 parent 1a3138e commit fca9b98
Show file tree
Hide file tree
Showing 92 changed files with 196 additions and 187 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/bisquitt-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,27 @@ jobs:
build-and-push-image:
name: Build and push a Docker image
runs-on: ubuntu-20.04
permissions:
packages: write
contents: read
attestations: write
id-token: write
steps:
- uses: actions/checkout@v2
with:
path: "go/src/github.com/energomonitor/bisquitt"
path: "go/src/github.com/energostack/bisquitt"

- name: Login to Docker Hub
uses: docker/login-action@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
registry: ghcr.io/energostack/bisquitt-psk
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build image
run: "make docker/build"
working-directory: "go/src/github.com/energomonitor/bisquitt"
working-directory: "go/src/github.com/energostack/bisquitt"

- name: Push image
run: "make docker/push"
working-directory: "go/src/github.com/energomonitor/bisquitt"
working-directory: "go/src/github.com/energostack/bisquitt"
16 changes: 8 additions & 8 deletions .github/workflows/bisquitt-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,19 @@ jobs:
steps:
- uses: actions/checkout@v2
with:
path: "go/src/github.com/energomonitor/bisquitt"
path: "go/src/github.com/energostack/bisquitt"

- uses: actions/setup-go@v2
with:
go-version: "${{ matrix.go_version }}"

- name: Download dependencies
run: "make tidy"
working-directory: "go/src/github.com/energomonitor/bisquitt"
working-directory: "go/src/github.com/energostack/bisquitt"

- name: Run tests
run: "go version && make test"
working-directory: "go/src/github.com/energomonitor/bisquitt"
working-directory: "go/src/github.com/energostack/bisquitt"

fmt-check:
name: Code format - go ${{ matrix.go_version }}
Expand All @@ -46,19 +46,19 @@ jobs:
steps:
- uses: actions/checkout@v2
with:
path: "go/src/github.com/energomonitor/bisquitt"
path: "go/src/github.com/energostack/bisquitt"

- uses: actions/setup-go@v2
with:
go-version: "${{ matrix.go_version }}"

- name: Install goimports
run: "go get golang.org/x/tools/cmd/goimports"
working-directory: "go/src/github.com/energomonitor/bisquitt"
working-directory: "go/src/github.com/energostack/bisquitt"

- name: Run format check
run: "./tools/ci/run_fmt_check.bash"
working-directory: "go/src/github.com/energomonitor/bisquitt"
working-directory: "go/src/github.com/energostack/bisquitt"

integration-tests:
name: Integration tests - builder ${{ matrix.builder_version }}
Expand All @@ -70,10 +70,10 @@ jobs:
steps:
- uses: actions/checkout@v2
with:
path: "go/src/github.com/energomonitor/bisquitt"
path: "go/src/github.com/energostack/bisquitt"

- name: Run test
run: "make docker/test"
env:
DOCKER_BUILDER_VERSION: "${{ matrix.builder_version }}"
working-directory: "go/src/github.com/energomonitor/bisquitt"
working-directory: "go/src/github.com/energostack/bisquitt"
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
VERSION := $(shell cat version.txt)

DOCKER_REGISTRY ?= docker.io
DOCKER_REGISTRY ?= ghcr.io
DOCKER_BUILDER_VERSION ?= 1.17.8-bullseye
DOCKER_RUNTIME_VERSION ?= bullseye-20220228-slim
DOCKER_IMAGE = energomonitor/bisquitt
DOCKER_IMAGE = energostack/bisquitt

# Enable data race detection in the compiled binaries.
ifeq ($(WITH_RACE_DETECTION), 1)
Expand Down
19 changes: 11 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
</p>

<p align="center">
<a href="https://github.com/energomonitor/bisquitt/actions/workflows/bisquitt-tests.yaml"><img src="https://img.shields.io/github/workflow/status/energomonitor/bisquitt/bisquitt%20tests?style=flat-square" alt="Build status"></a>
<a href="https://pkg.go.dev/github.com/energomonitor/bisquitt"><img src="https://pkg.go.dev/badge/github.com/energomonitor/bisquitt.svg" alt="Go Reference"></a>
<a href="https://github.com/energomonitor/bisquitt#license"><img src="https://img.shields.io/github/license/energomonitor/bisquitt?style=flat-square" alt="License"></a>
<a href="https://github.com/energostack/bisquitt/actions/workflows/bisquitt-tests.yaml"><img src="https://img.shields.io/github/workflow/status/energostack/bisquitt/bisquitt%20tests?style=flat-square" alt="Build status"></a>
<a href="https://pkg.go.dev/github.com/energostack/bisquitt"><img src="https://pkg.go.dev/badge/github.com/energostack/bisquitt.svg" alt="Go Reference"></a>
<a href="https://github.com/energostack/bisquitt#license"><img src="https://img.shields.io/github/license/energostack/bisquitt?style=flat-square" alt="License"></a>
</p>

Bisquitt is a transparent MQTT-SN gateway. It provides a simple, secure, and
Expand All @@ -23,8 +23,11 @@ command-line MQTT-SN clients and can be used as a Go MQTT-SN library.

The easiest way to install Bisquitt is to use its Docker image:

### Deprecation warning
Dockerhub registry images is now deprecated. Please use GitHub Container Registry (ghcr.io) instead.

```console
$ docker pull energomonitor/bisquitt
$ docker pull ghcr.io/energostack/bisquitt
```

The image contains the gateway itself (`bisquitt`), which is started by default,
Expand All @@ -33,9 +36,9 @@ and the command-line MQTT-SN clients (`bisquitt-sub` and `bisquitt-pub`).
Alternatively, you can install the gateway and clients using `go install`:

```console
$ go install github.com/energomonitor/bisquitt/cmd/bisquitt@latest
$ go install github.com/energomonitor/bisquitt/cmd/bisquitt-pub@latest
$ go install github.com/energomonitor/bisquitt/cmd/bisquitt-sub@latest
$ go install github.com/energostack/bisquitt/cmd/bisquitt@latest
$ go install github.com/energostack/bisquitt/cmd/bisquitt-pub@latest
$ go install github.com/energostack/bisquitt/cmd/bisquitt-sub@latest
```

Note that Bisquitt requires Go 1.16 or higher.
Expand All @@ -61,7 +64,7 @@ open-source MQTT server) using Docker Compose:

services:
bisquitt:
image: energomonitor/bisquitt
image: energostack/bisquitt
environment:
MQTT_HOST: mosquitto
BISQUITT_USER: bisquitt
Expand Down
4 changes: 2 additions & 2 deletions client/broker_publish_qos2_transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ package client
import (
"fmt"

pkts1 "github.com/energomonitor/bisquitt/packets1"
"github.com/energomonitor/bisquitt/transactions"
pkts1 "github.com/energostack/bisquitt/packets1"
"github.com/energostack/bisquitt/transactions"
)

type brokerPublishQOS2Transaction struct {
Expand Down
14 changes: 7 additions & 7 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
// "fmt"
// "time"
//
// "github.com/energomonitor/bisquitt/client"
// "github.com/energomonitor/bisquitt/util"
// "github.com/energostack/bisquitt/client"
// "github.com/energostack/bisquitt/util"
// )
//
// func main() {
Expand Down Expand Up @@ -70,11 +70,11 @@ import (
"github.com/pion/dtls/v2/pkg/crypto/selfsign"
"golang.org/x/sync/errgroup"

pkts "github.com/energomonitor/bisquitt/packets"
pkts1 "github.com/energomonitor/bisquitt/packets1"
"github.com/energomonitor/bisquitt/topics"
"github.com/energomonitor/bisquitt/transactions"
"github.com/energomonitor/bisquitt/util"
pkts "github.com/energostack/bisquitt/packets"
pkts1 "github.com/energostack/bisquitt/packets1"
"github.com/energostack/bisquitt/topics"
"github.com/energostack/bisquitt/transactions"
"github.com/energostack/bisquitt/util"
)

type ClientConfig struct {
Expand Down
10 changes: 5 additions & 5 deletions client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ import (

"github.com/stretchr/testify/assert"

pkts "github.com/energomonitor/bisquitt/packets"
pkts1 "github.com/energomonitor/bisquitt/packets1"
"github.com/energomonitor/bisquitt/topics"
"github.com/energomonitor/bisquitt/transactions"
"github.com/energomonitor/bisquitt/util"
pkts "github.com/energostack/bisquitt/packets"
pkts1 "github.com/energostack/bisquitt/packets1"
"github.com/energostack/bisquitt/topics"
"github.com/energostack/bisquitt/transactions"
"github.com/energostack/bisquitt/util"
)

const (
Expand Down
8 changes: 4 additions & 4 deletions client/connect_transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"context"
"fmt"

pkts "github.com/energomonitor/bisquitt/packets"
pkts1 "github.com/energomonitor/bisquitt/packets1"
"github.com/energomonitor/bisquitt/transactions"
"github.com/energomonitor/bisquitt/util"
pkts "github.com/energostack/bisquitt/packets"
pkts1 "github.com/energostack/bisquitt/packets1"
"github.com/energostack/bisquitt/transactions"
"github.com/energostack/bisquitt/util"
)

type connectTransaction struct {
Expand Down
6 changes: 3 additions & 3 deletions client/disconnect_transaction.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package client

import (
pkts "github.com/energomonitor/bisquitt/packets"
pkts1 "github.com/energomonitor/bisquitt/packets1"
"github.com/energomonitor/bisquitt/transactions"
pkts "github.com/energostack/bisquitt/packets"
pkts1 "github.com/energostack/bisquitt/packets1"
"github.com/energostack/bisquitt/transactions"
)

type disconnectTransaction struct {
Expand Down
2 changes: 1 addition & 1 deletion client/message_handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"strings"
"sync"

pkts1 "github.com/energomonitor/bisquitt/packets1"
pkts1 "github.com/energostack/bisquitt/packets1"
)

// Subscribed message handler callback type.
Expand Down
6 changes: 3 additions & 3 deletions client/net.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (

dtlsProtocol "github.com/pion/dtls/v2/pkg/protocol"

pkts "github.com/energomonitor/bisquitt/packets"
pkts1 "github.com/energomonitor/bisquitt/packets1"
"github.com/energomonitor/bisquitt/util"
pkts "github.com/energostack/bisquitt/packets"
pkts1 "github.com/energostack/bisquitt/packets1"
"github.com/energostack/bisquitt/util"
)

func (c *Client) send(pkt pkts.Packet) error {
Expand Down
6 changes: 3 additions & 3 deletions client/ping_transaction.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package client

import (
pkts "github.com/energomonitor/bisquitt/packets"
pkts1 "github.com/energomonitor/bisquitt/packets1"
"github.com/energomonitor/bisquitt/transactions"
pkts "github.com/energostack/bisquitt/packets"
pkts1 "github.com/energostack/bisquitt/packets1"
"github.com/energostack/bisquitt/transactions"
)

type pingTransaction struct {
Expand Down
6 changes: 3 additions & 3 deletions client/publish_qos1_transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package client
import (
"fmt"

pkts "github.com/energomonitor/bisquitt/packets"
pkts1 "github.com/energomonitor/bisquitt/packets1"
"github.com/energomonitor/bisquitt/transactions"
pkts "github.com/energostack/bisquitt/packets"
pkts1 "github.com/energostack/bisquitt/packets1"
"github.com/energostack/bisquitt/transactions"
)

type publishQOS1Transaction struct {
Expand Down
6 changes: 3 additions & 3 deletions client/publish_qos2_transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package client
import (
"fmt"

pkts "github.com/energomonitor/bisquitt/packets"
pkts1 "github.com/energomonitor/bisquitt/packets1"
"github.com/energomonitor/bisquitt/transactions"
pkts "github.com/energostack/bisquitt/packets"
pkts1 "github.com/energostack/bisquitt/packets1"
"github.com/energostack/bisquitt/transactions"
)

type publishQOS2Transaction struct {
Expand Down
6 changes: 3 additions & 3 deletions client/register_transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package client
import (
"fmt"

pkts "github.com/energomonitor/bisquitt/packets"
pkts1 "github.com/energomonitor/bisquitt/packets1"
"github.com/energomonitor/bisquitt/transactions"
pkts "github.com/energostack/bisquitt/packets"
pkts1 "github.com/energostack/bisquitt/packets1"
"github.com/energostack/bisquitt/transactions"
)

type registerTransaction struct {
Expand Down
8 changes: 4 additions & 4 deletions client/sleep_transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"fmt"
"time"

pkts "github.com/energomonitor/bisquitt/packets"
pkts1 "github.com/energomonitor/bisquitt/packets1"
"github.com/energomonitor/bisquitt/transactions"
"github.com/energomonitor/bisquitt/util"
pkts "github.com/energostack/bisquitt/packets"
pkts1 "github.com/energostack/bisquitt/packets1"
"github.com/energostack/bisquitt/transactions"
"github.com/energostack/bisquitt/util"
)

const maxPingrespWait = time.Minute
Expand Down
6 changes: 3 additions & 3 deletions client/subscribe_transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"fmt"
"strings"

pkts "github.com/energomonitor/bisquitt/packets"
pkts1 "github.com/energomonitor/bisquitt/packets1"
"github.com/energomonitor/bisquitt/transactions"
pkts "github.com/energostack/bisquitt/packets"
pkts1 "github.com/energostack/bisquitt/packets1"
"github.com/energostack/bisquitt/transactions"
)

type subscribeTransaction struct {
Expand Down
6 changes: 3 additions & 3 deletions client/transaction.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package client

import (
pkts1 "github.com/energomonitor/bisquitt/packets1"
"github.com/energomonitor/bisquitt/transactions"
"github.com/energomonitor/bisquitt/util"
pkts1 "github.com/energostack/bisquitt/packets1"
"github.com/energostack/bisquitt/transactions"
"github.com/energostack/bisquitt/util"
)

// Transactions states constants type.
Expand Down
6 changes: 3 additions & 3 deletions client/unsubscribe_transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"fmt"
"strings"

pkts "github.com/energomonitor/bisquitt/packets"
pkts1 "github.com/energomonitor/bisquitt/packets1"
"github.com/energomonitor/bisquitt/transactions"
pkts "github.com/energostack/bisquitt/packets"
pkts1 "github.com/energostack/bisquitt/packets1"
"github.com/energostack/bisquitt/transactions"
)

type unsubscribeTransaction struct {
Expand Down
8 changes: 4 additions & 4 deletions cmd/bisquitt-pub/actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ import (
"github.com/patrickmn/go-cache"
"github.com/urfave/cli/v2"

snClient "github.com/energomonitor/bisquitt/client"
"github.com/energomonitor/bisquitt/topics"
"github.com/energomonitor/bisquitt/util"
cryptoutils "github.com/energomonitor/bisquitt/util/crypto"
snClient "github.com/energostack/bisquitt/client"
"github.com/energostack/bisquitt/topics"
"github.com/energostack/bisquitt/util"
cryptoutils "github.com/energostack/bisquitt/util/crypto"
)

func handleAction() cli.ActionFunc {
Expand Down
2 changes: 1 addition & 1 deletion cmd/bisquitt-pub/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/urfave/cli/v2"

"github.com/energomonitor/bisquitt"
"github.com/energostack/bisquitt"
)

const (
Expand Down
Loading

0 comments on commit fca9b98

Please sign in to comment.