Skip to content

Commit c1aebd8

Browse files
committed
update to external git
1 parent d49f6d5 commit c1aebd8

Some content is hidden

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

44 files changed

+94
-101
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ to prometheus counter.
390390
## Build
391391

392392
- Clone this repository from github into a local machine (Linux/X86):
393-
`git clone git@github.ibm.com:MCNM/observability.git`
393+
`git clone [email protected]:netobserv/flowlogs2metrics.git`
394394
- Change directory into flowlogs2metrics into:
395395
`cd flowlogs2metrics`
396396
- Build the code:

cmd/apitodoc/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ package main
2020
import (
2121
"bytes"
2222
"fmt"
23-
"github.ibm.com/MCNM/observability/flowlogs2metrics/pkg/api"
23+
"github.com/netobserv/flowlogs2metrics/pkg/api"
2424
"io"
2525
"reflect"
2626
"strings"
@@ -41,7 +41,7 @@ func iterate(output io.Writer, data interface{}, indent int) {
4141
for i := 0; i < d.NumField(); i++ {
4242
val := reflect.Indirect(reflect.ValueOf(data))
4343
// fieldName := val.Type().Field(i).Name
44-
fieldName:= val.Type().Field(i).Tag.Get(api.TagYaml)
44+
fieldName := val.Type().Field(i).Tag.Get(api.TagYaml)
4545
fieldDocTag := val.Type().Field(i).Tag.Get(api.TagDoc)
4646
fieldEnumTag := val.Type().Field(i).Tag.Get(api.TagEnum)
4747

cmd/confgenerator/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ import (
2121
"encoding/json"
2222
"fmt"
2323
jsoniter "github.com/json-iterator/go"
24+
"github.com/netobserv/flowlogs2metrics/pkg/confgen"
2425
log "github.com/sirupsen/logrus"
2526
"github.com/spf13/cobra"
2627
"github.com/spf13/pflag"
2728
"github.com/spf13/viper"
28-
"github.ibm.com/MCNM/observability/flowlogs2metrics/pkg/confgen"
2929
"os"
3030
"path/filepath"
3131
"strings"

cmd/flowlogs2metrics/benchmark_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func Benchmark_Test(b *testing.B) {
3535
for _, bm := range benchmarks {
3636
b.Run(bm.confFile,
3737
func(b *testing.B) {
38-
os.Args = []string{"test","--config="+bm.confFile}
38+
os.Args = []string{"test", "--config=" + bm.confFile}
3939
b.ResetTimer()
4040
for i := 1; i <= 100; i++ {
4141
_ = rootCmd.Execute()
@@ -44,4 +44,3 @@ func Benchmark_Test(b *testing.B) {
4444
)
4545
}
4646
}
47-

cmd/flowlogs2metrics/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ import (
2121
"encoding/json"
2222
"fmt"
2323
jsoniter "github.com/json-iterator/go"
24+
"github.com/netobserv/flowlogs2metrics/pkg/config"
25+
"github.com/netobserv/flowlogs2metrics/pkg/pipeline"
2426
log "github.com/sirupsen/logrus"
2527
"github.com/spf13/cobra"
2628
"github.com/spf13/pflag"
2729
"github.com/spf13/viper"
28-
"github.ibm.com/MCNM/observability/flowlogs2metrics/pkg/config"
29-
"github.ibm.com/MCNM/observability/flowlogs2metrics/pkg/pipeline"
3030
"os"
3131
"path/filepath"
3232
"strings"

cmd/flowlogs2metrics/main_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import (
2323
"testing"
2424
)
2525

26-
2726
func TestTheMain(t *testing.T) {
2827
if os.Getenv("BE_CRASHER") == "1" {
2928
main()
@@ -37,4 +36,3 @@ func TestTheMain(t *testing.T) {
3736
}
3837
t.Fatalf("process ran with err %v, want exit status 1", err)
3938
}
40-

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.ibm.com/MCNM/observability/flowlogs2metrics
1+
module github.com/netobserv/flowlogs2metrics
22

33
go 1.17
44

pkg/api/transform_generic.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,3 @@ type GenericTransformRule struct {
2727
}
2828

2929
type GenericTransform []GenericTransformRule
30-

pkg/confgen/confgen.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ package confgen
1919

2020
import (
2121
"fmt"
22+
"github.com/netobserv/flowlogs2metrics/pkg/api"
23+
"github.com/netobserv/flowlogs2metrics/pkg/pipeline/extract/aggregate"
2224
log "github.com/sirupsen/logrus"
23-
"github.ibm.com/MCNM/observability/flowlogs2metrics/pkg/api"
24-
"github.ibm.com/MCNM/observability/flowlogs2metrics/pkg/pipeline/extract/aggregate"
2525
"gopkg.in/yaml.v2"
2626
"io/ioutil"
2727
"os"

pkg/confgen/confgen_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
package confgen
1919

2020
import (
21+
"github.com/netobserv/flowlogs2metrics/pkg/api"
2122
"github.com/stretchr/testify/require"
22-
"github.ibm.com/MCNM/observability/flowlogs2metrics/pkg/api"
2323
"os"
2424
"testing"
2525
)

0 commit comments

Comments
 (0)