Skip to content

Commit 45a2e6c

Browse files
committed
Set module paths to o-k-o/sg-core
This is to finish the move of the repository from infrawatch/sg-core to openstack-k8s-operators/sg-core
1 parent 8be4008 commit 45a2e6c

42 files changed

Lines changed: 112 additions & 112 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
[![Coverage Status](https://coveralls.io/repos/github/infrawatch/sg-core/badge.svg?branch=master)](https://coveralls.io/github/infrawatch/sg-core?branch=master)
2-
[![CI](https://github.com/infrawatch/sg-core/actions/workflows/tests.yml/badge.svg)](https://github.com/infrawatch/sg-core/actions/workflows/tests.yml)
1+
[![Coverage Status](https://coveralls.io/repos/github/openstack-k8s-operators/sg-core/badge.svg?branch=main)](https://coveralls.io/github/openstack-k8s-operators/sg-core?branch=main)
2+
[![CI](https://github.com/openstack-k8s-operators/sg-core/actions/workflows/tests.yml/badge.svg)](https://github.com/openstack-k8s-operators/sg-core/actions/workflows/tests.yml)
33
# Plugins
44
Default plugins exist in /plugins. Plugins can also be hosted as separate projects.
55

build/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# --- build smart gateway ---
22
FROM registry.access.redhat.com/ubi9:latest AS builder
33
ENV GOPATH=/go
4-
ENV D=/go/src/github.com/infrawatch/sg-core
4+
ENV D=/go/src/github.com/openstack-k8s-operators/sg-core
55

66
WORKDIR $D
77
COPY . $D/

build/run_retrodep.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
# * https://github.com/grs/go-license-summary
1212
# * https://github.com/release-engineering/retrodep
1313

14-
retrodep -importpath github.com/infrawatch/sg-core . | tee ./rh-manifest.txt
14+
retrodep -importpath github.com/openstack-k8s-operators/sg-core . | tee ./rh-manifest.txt
1515
./build/update_license_info ./rh-manifest.txt .

cmd/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import (
1212

1313
"github.com/infrawatch/apputils/logging"
1414
"github.com/infrawatch/apputils/system"
15-
"github.com/infrawatch/sg-core/cmd/manager"
16-
"github.com/infrawatch/sg-core/pkg/config"
15+
"github.com/openstack-k8s-operators/sg-core/cmd/manager"
16+
"github.com/openstack-k8s-operators/sg-core/pkg/config"
1717
)
1818

1919
func main() {

cmd/manager/manager.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ import (
1010
"sync"
1111

1212
"github.com/infrawatch/apputils/logging"
13-
"github.com/infrawatch/sg-core/pkg/application"
14-
"github.com/infrawatch/sg-core/pkg/bus"
15-
"github.com/infrawatch/sg-core/pkg/handler"
16-
"github.com/infrawatch/sg-core/pkg/transport"
13+
"github.com/openstack-k8s-operators/sg-core/pkg/application"
14+
"github.com/openstack-k8s-operators/sg-core/pkg/bus"
15+
"github.com/openstack-k8s-operators/sg-core/pkg/handler"
16+
"github.com/openstack-k8s-operators/sg-core/pkg/transport"
1717
"github.com/pkg/errors"
1818
"gopkg.in/yaml.v2"
1919
)

docs/developer/developing-plugins.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ type Transport interface {
103103

104104
Handlers parse incoming blobs from the transport into objects and delivers those objects to the internal buses. There are two types of handlers: metric handlers and event handlers. Metric handlers deliver metric objects to the internal metrics bus while event handlers deliver event objects to the internal events bus. These metrics and events are then consumed by the application plugins.
105105

106-
Handlers must remain simple: they take in no configuration and should only handle one message type. See the [collectd-metrics](https://github.com/infrawatch/sg-core/tree/master/plugins/handler/collectd-metrics) plugin for an example. Additionally, handlers should not print logs (this is why no logger is passed into the New() function). If errors occur while parsing messages, handlers should create their own metrics or events recording the error(s) and write them to the bus. The `collectd-metrics` handler iterates a counter every time a parsing error occurs and submits the number as a metric to the metric bus.
106+
Handlers must remain simple: they take in no configuration and should only handle one message type. See the [collectd-metrics](https://github.com/openstack-k8s-operators/sg-core/tree/master/plugins/handler/collectd-metrics) plugin for an example. Additionally, handlers should not print logs (this is why no logger is passed into the New() function). If errors occur while parsing messages, handlers should create their own metrics or events recording the error(s) and write them to the bus. The `collectd-metrics` handler iterates a counter every time a parsing error occurs and submits the number as a metric to the metric bus.
107107

108108

109109
Handler plugin objects must imeplement either the MetricHandler interface or the EventHandler interface:
@@ -119,7 +119,7 @@ type EventHandler interface {
119119

120120
## Applications
121121

122-
The purpose of application plugins are to provide the business logic for interfacing with external programs like a database. They receive both metrics and events and must decide what to do with them. For example, the [prometheus](https://github.com/infrawatch/sg-core/tree/master/plugins/application/prometheus) plugin receives metrics from the internal metrics bus and stores them into Prometheus.
122+
The purpose of application plugins are to provide the business logic for interfacing with external programs like a database. They receive both metrics and events and must decide what to do with them. For example, the [prometheus](https://github.com/openstack-k8s-operators/sg-core/tree/master/plugins/application/prometheus) plugin receives metrics from the internal metrics bus and stores them into Prometheus.
123123

124124
Application plugins must implement the Application interface:
125125
```go
@@ -130,4 +130,4 @@ type Application interface {
130130
```
131131

132132
## Examples
133-
Examples of the implementation of each type of plugin can be found in the [plugins](https://github.com/infrawatch/sg-core/tree/master/plugins) directory.
133+
Examples of the implementation of each type of plugin can be found in the [plugins](https://github.com/openstack-k8s-operators/sg-core/tree/master/plugins) directory.

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/infrawatch/sg-core
1+
module github.com/openstack-k8s-operators/sg-core
22

33
go 1.21
44

pkg/application/application.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"context"
55
"time"
66

7-
"github.com/infrawatch/sg-core/pkg/data"
7+
"github.com/openstack-k8s-operators/sg-core/pkg/data"
88
)
99

1010
// package application defines the interfaces for interacting with application plugins

pkg/bus/bus.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"sync"
55
"time"
66

7-
"github.com/infrawatch/sg-core/pkg/data"
7+
"github.com/openstack-k8s-operators/sg-core/pkg/data"
88
)
99

1010
// EventReceiveFunc callback type for receiving events from the event bus

pkg/handler/handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package handler
33
import (
44
"context"
55

6-
"github.com/infrawatch/sg-core/pkg/bus"
6+
"github.com/openstack-k8s-operators/sg-core/pkg/bus"
77
)
88

99
// package handler contains the interface description for handler plugins

0 commit comments

Comments
 (0)