Skip to content

Commit

Permalink
move internals
Browse files Browse the repository at this point in the history
  • Loading branch information
tbauriedel committed Dec 20, 2023
1 parent fe33988 commit daf788c
Show file tree
Hide file tree
Showing 65 changed files with 72 additions and 72 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"strings"
"time"

"github.com/NETWAYS/support-collector/pkg/obfuscate"
"github.com/NETWAYS/support-collector/internal/obfuscate"
"github.com/sirupsen/logrus"
"gopkg.in/yaml.v3"
)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion pkg/util/testing.go → internal/util/testing.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"strings"
"testing"

"github.com/NETWAYS/support-collector/pkg/obfuscate"
"github.com/NETWAYS/support-collector/internal/obfuscate"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/util/testing_test.go → internal/util/testing_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package util
import (
"testing"

"github.com/NETWAYS/support-collector/pkg/obfuscate"
"github.com/NETWAYS/support-collector/internal/obfuscate"
"github.com/stretchr/testify/assert"
)

Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import (
"strings"
"time"

"github.com/NETWAYS/support-collector/internal/collection"
"github.com/NETWAYS/support-collector/internal/obfuscate"
"github.com/NETWAYS/support-collector/internal/util"
"github.com/NETWAYS/support-collector/modules/ansible"
"github.com/NETWAYS/support-collector/modules/base"
"github.com/NETWAYS/support-collector/modules/corosync"
Expand All @@ -27,9 +30,6 @@ import (
"github.com/NETWAYS/support-collector/modules/prometheus"
"github.com/NETWAYS/support-collector/modules/puppet"
"github.com/NETWAYS/support-collector/modules/webservers"
"github.com/NETWAYS/support-collector/pkg/collection"
"github.com/NETWAYS/support-collector/pkg/obfuscate"
"github.com/NETWAYS/support-collector/pkg/util"

"github.com/mattn/go-colorable"
"github.com/sirupsen/logrus"
Expand Down
2 changes: 1 addition & 1 deletion modules/ansible/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"os"
"path/filepath"

"github.com/NETWAYS/support-collector/pkg/collection"
"github.com/NETWAYS/support-collector/internal/collection"
)

const ModuleName = "ansible"
Expand Down
2 changes: 1 addition & 1 deletion modules/ansible/collector_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"bytes"
"testing"

"github.com/NETWAYS/support-collector/pkg/collection"
"github.com/NETWAYS/support-collector/internal/collection"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion modules/base/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"os/exec"
"path/filepath"

"github.com/NETWAYS/support-collector/pkg/collection"
"github.com/NETWAYS/support-collector/internal/collection"
"gopkg.in/yaml.v3"
)

Expand Down
2 changes: 1 addition & 1 deletion modules/base/collector_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"bytes"
"testing"

"github.com/NETWAYS/support-collector/pkg/collection"
"github.com/NETWAYS/support-collector/internal/collection"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion modules/corosync/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"os"
"path/filepath"

"github.com/NETWAYS/support-collector/pkg/collection"
"github.com/NETWAYS/support-collector/internal/collection"
)

const ModuleName = "corosync"
Expand Down
2 changes: 1 addition & 1 deletion modules/corosync/collector_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"bytes"
"testing"

"github.com/NETWAYS/support-collector/pkg/collection"
"github.com/NETWAYS/support-collector/internal/collection"
"github.com/stretchr/testify/assert"
)

Expand Down
4 changes: 2 additions & 2 deletions modules/elastic/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"os"
"path/filepath"

"github.com/NETWAYS/support-collector/pkg/collection"
"github.com/NETWAYS/support-collector/pkg/obfuscate"
"github.com/NETWAYS/support-collector/internal/collection"
"github.com/NETWAYS/support-collector/internal/obfuscate"
)

const ModuleName = "elastic"
Expand Down
6 changes: 3 additions & 3 deletions modules/elastic/collector_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"bytes"
"testing"

"github.com/NETWAYS/support-collector/pkg/collection"
"github.com/NETWAYS/support-collector/pkg/obfuscate"
"github.com/NETWAYS/support-collector/pkg/util"
"github.com/NETWAYS/support-collector/internal/collection"
"github.com/NETWAYS/support-collector/internal/obfuscate"
"github.com/NETWAYS/support-collector/internal/util"
"github.com/stretchr/testify/assert"
)

Expand Down
4 changes: 2 additions & 2 deletions modules/foreman/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"os"
"path/filepath"

"github.com/NETWAYS/support-collector/pkg/collection"
"github.com/NETWAYS/support-collector/pkg/obfuscate"
"github.com/NETWAYS/support-collector/internal/collection"
"github.com/NETWAYS/support-collector/internal/obfuscate"
)

const ModuleName = "foreman"
Expand Down
6 changes: 3 additions & 3 deletions modules/foreman/collector_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"bytes"
"testing"

"github.com/NETWAYS/support-collector/pkg/collection"
"github.com/NETWAYS/support-collector/pkg/obfuscate"
"github.com/NETWAYS/support-collector/pkg/util"
"github.com/NETWAYS/support-collector/internal/collection"
"github.com/NETWAYS/support-collector/internal/obfuscate"
"github.com/NETWAYS/support-collector/internal/util"
"github.com/stretchr/testify/assert"
)

Expand Down
4 changes: 2 additions & 2 deletions modules/grafana/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"os"
"path/filepath"

"github.com/NETWAYS/support-collector/pkg/collection"
"github.com/NETWAYS/support-collector/pkg/obfuscate"
"github.com/NETWAYS/support-collector/internal/collection"
"github.com/NETWAYS/support-collector/internal/obfuscate"
)

const ModuleName = "grafana"
Expand Down
2 changes: 1 addition & 1 deletion modules/grafana/collector_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"bytes"
"testing"

"github.com/NETWAYS/support-collector/pkg/collection"
"github.com/NETWAYS/support-collector/internal/collection"
"github.com/stretchr/testify/assert"
)

Expand Down
6 changes: 3 additions & 3 deletions modules/graphite/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"os"
"path/filepath"

"github.com/NETWAYS/support-collector/pkg/collection"
"github.com/NETWAYS/support-collector/pkg/obfuscate"
"github.com/NETWAYS/support-collector/pkg/util"
"github.com/NETWAYS/support-collector/internal/collection"
"github.com/NETWAYS/support-collector/internal/obfuscate"
"github.com/NETWAYS/support-collector/internal/util"
)

const ModuleName = "graphite"
Expand Down
2 changes: 1 addition & 1 deletion modules/graphite/collector_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"bytes"
"testing"

"github.com/NETWAYS/support-collector/pkg/collection"
"github.com/NETWAYS/support-collector/internal/collection"
"github.com/stretchr/testify/assert"
)

Expand Down
4 changes: 2 additions & 2 deletions modules/graylog/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"os"
"path/filepath"

"github.com/NETWAYS/support-collector/pkg/collection"
"github.com/NETWAYS/support-collector/pkg/obfuscate"
"github.com/NETWAYS/support-collector/internal/collection"
"github.com/NETWAYS/support-collector/internal/obfuscate"
)

const ModuleName = "graylog"
Expand Down
6 changes: 3 additions & 3 deletions modules/graylog/collector_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"bytes"
"testing"

"github.com/NETWAYS/support-collector/pkg/collection"
"github.com/NETWAYS/support-collector/pkg/obfuscate"
"github.com/NETWAYS/support-collector/pkg/util"
"github.com/NETWAYS/support-collector/internal/collection"
"github.com/NETWAYS/support-collector/internal/obfuscate"
"github.com/NETWAYS/support-collector/internal/util"
"github.com/stretchr/testify/assert"
)

Expand Down
4 changes: 2 additions & 2 deletions modules/icinga2/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"path/filepath"
"regexp"

"github.com/NETWAYS/support-collector/pkg/collection"
"github.com/NETWAYS/support-collector/pkg/obfuscate"
"github.com/NETWAYS/support-collector/internal/collection"
"github.com/NETWAYS/support-collector/internal/obfuscate"
)

const ModuleName = "icinga2"
Expand Down
4 changes: 2 additions & 2 deletions modules/icingadb/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"os"
"path/filepath"

"github.com/NETWAYS/support-collector/pkg/collection"
"github.com/NETWAYS/support-collector/pkg/obfuscate"
"github.com/NETWAYS/support-collector/internal/collection"
"github.com/NETWAYS/support-collector/internal/obfuscate"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion modules/icingadb/collector_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"bytes"
"testing"

"github.com/NETWAYS/support-collector/pkg/collection"
"github.com/NETWAYS/support-collector/internal/collection"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion modules/icingadirector/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"os"
"path/filepath"

"github.com/NETWAYS/support-collector/pkg/collection"
"github.com/NETWAYS/support-collector/internal/collection"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion modules/icingadirector/collector_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"bytes"
"testing"

"github.com/NETWAYS/support-collector/pkg/collection"
"github.com/NETWAYS/support-collector/internal/collection"
"github.com/stretchr/testify/assert"
)

Expand Down
4 changes: 2 additions & 2 deletions modules/icingaweb2/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"os"
"path/filepath"

"github.com/NETWAYS/support-collector/pkg/collection"
"github.com/NETWAYS/support-collector/pkg/obfuscate"
"github.com/NETWAYS/support-collector/internal/collection"
"github.com/NETWAYS/support-collector/internal/obfuscate"
)

const (
Expand Down
6 changes: 3 additions & 3 deletions modules/icingaweb2/collector_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"bytes"
"testing"

"github.com/NETWAYS/support-collector/pkg/collection"
"github.com/NETWAYS/support-collector/pkg/obfuscate"
"github.com/NETWAYS/support-collector/pkg/util"
"github.com/NETWAYS/support-collector/internal/collection"
"github.com/NETWAYS/support-collector/internal/obfuscate"
"github.com/NETWAYS/support-collector/internal/util"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion modules/influxdb/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"os"
"path/filepath"

"github.com/NETWAYS/support-collector/pkg/collection"
"github.com/NETWAYS/support-collector/internal/collection"
)

const ModuleName = "influxdb"
Expand Down
2 changes: 1 addition & 1 deletion modules/influxdb/collector_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"bytes"
"testing"

"github.com/NETWAYS/support-collector/pkg/collection"
"github.com/NETWAYS/support-collector/internal/collection"
"github.com/stretchr/testify/assert"
)

Expand Down
4 changes: 2 additions & 2 deletions modules/keepalived/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"os"
"path/filepath"

"github.com/NETWAYS/support-collector/pkg/collection"
"github.com/NETWAYS/support-collector/pkg/obfuscate"
"github.com/NETWAYS/support-collector/internal/collection"
"github.com/NETWAYS/support-collector/internal/obfuscate"
)

const ModuleName = "keepalived"
Expand Down
6 changes: 3 additions & 3 deletions modules/keepalived/collector_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"bytes"
"testing"

"github.com/NETWAYS/support-collector/pkg/collection"
"github.com/NETWAYS/support-collector/pkg/obfuscate"
"github.com/NETWAYS/support-collector/pkg/util"
"github.com/NETWAYS/support-collector/internal/collection"
"github.com/NETWAYS/support-collector/internal/obfuscate"
"github.com/NETWAYS/support-collector/internal/util"
"github.com/stretchr/testify/assert"
)

Expand Down
4 changes: 2 additions & 2 deletions modules/mongodb/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"os"
"path/filepath"

"github.com/NETWAYS/support-collector/pkg/collection"
"github.com/NETWAYS/support-collector/pkg/obfuscate"
"github.com/NETWAYS/support-collector/internal/collection"
"github.com/NETWAYS/support-collector/internal/obfuscate"
)

const ModuleName = "mongodb"
Expand Down
6 changes: 3 additions & 3 deletions modules/mongodb/collector_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"bytes"
"testing"

"github.com/NETWAYS/support-collector/pkg/collection"
"github.com/NETWAYS/support-collector/pkg/obfuscate"
"github.com/NETWAYS/support-collector/pkg/util"
"github.com/NETWAYS/support-collector/internal/collection"
"github.com/NETWAYS/support-collector/internal/obfuscate"
"github.com/NETWAYS/support-collector/internal/util"
"github.com/stretchr/testify/assert"
)

Expand Down
4 changes: 2 additions & 2 deletions modules/mysql/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"os"
"path/filepath"

"github.com/NETWAYS/support-collector/pkg/collection"
"github.com/NETWAYS/support-collector/pkg/obfuscate"
"github.com/NETWAYS/support-collector/internal/collection"
"github.com/NETWAYS/support-collector/internal/obfuscate"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion modules/mysql/collector_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"bytes"
"testing"

"github.com/NETWAYS/support-collector/pkg/collection"
"github.com/NETWAYS/support-collector/internal/collection"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion modules/postgresql/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"os"
"path/filepath"

"github.com/NETWAYS/support-collector/pkg/collection"
"github.com/NETWAYS/support-collector/internal/collection"
)

const ModuleName = "postgresql"
Expand Down
2 changes: 1 addition & 1 deletion modules/postgresql/collector_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"bytes"
"testing"

"github.com/NETWAYS/support-collector/pkg/collection"
"github.com/NETWAYS/support-collector/internal/collection"
"github.com/stretchr/testify/assert"
)

Expand Down
Loading

0 comments on commit daf788c

Please sign in to comment.