Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed module name to "github.com/shahariaazam/teredix" #28

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module teredix
module github.com/shahariaazam/teredix

go 1.18

Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"context"
"log"

"teredix/pkg/cmd"
"github.com/shahariaazam/teredix/pkg/cmd"
)

func main() {
Expand Down
10 changes: 5 additions & 5 deletions pkg/cmd/discover.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
package cmd

import (
"teredix/pkg/config"
"teredix/pkg/processor"
"teredix/pkg/resource"
"teredix/pkg/source"
"teredix/pkg/storage"
"github.com/shahariaazam/teredix/pkg/config"
"github.com/shahariaazam/teredix/pkg/processor"
"github.com/shahariaazam/teredix/pkg/resource"
"github.com/shahariaazam/teredix/pkg/source"
"github.com/shahariaazam/teredix/pkg/storage"

"github.com/spf13/cobra"
)
Expand Down
9 changes: 5 additions & 4 deletions pkg/cmd/display.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ import (
"fmt"
"log"
"net/http"
"teredix/pkg/config"
"teredix/pkg/storage"
"teredix/pkg/visualize"
"teredix/pkg/visualize/cytoscape"
"time"

"github.com/shahariaazam/teredix/pkg/config"
"github.com/shahariaazam/teredix/pkg/storage"
"github.com/shahariaazam/teredix/pkg/visualize"
"github.com/shahariaazam/teredix/pkg/visualize/cytoscape"

"github.com/spf13/cobra"
)

Expand Down
4 changes: 2 additions & 2 deletions pkg/cmd/relation.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
package cmd

import (
"teredix/pkg/config"
"teredix/pkg/storage"
"github.com/shahariaazam/teredix/pkg/config"
"github.com/shahariaazam/teredix/pkg/storage"

"github.com/spf13/cobra"
)
Expand Down
3 changes: 2 additions & 1 deletion pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ package config
import (
"fmt"
"io/ioutil"
"teredix/pkg"

"github.com/shahariaazam/teredix/pkg"

"gopkg.in/yaml.v3"
)
Expand Down
3 changes: 2 additions & 1 deletion pkg/config/config_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package config

import (
"teredix/pkg"
"testing"

"github.com/shahariaazam/teredix/pkg"

"github.com/stretchr/testify/assert"
)

Expand Down
7 changes: 4 additions & 3 deletions pkg/processor/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ package processor
import (
"fmt"
"sync"
"teredix/pkg/source"
"teredix/pkg/storage"

"github.com/shahariaazam/teredix/pkg/source"
"github.com/shahariaazam/teredix/pkg/storage"

"github.com/kyokomi/emoji"

"teredix/pkg/resource"
"github.com/shahariaazam/teredix/pkg/resource"
)

// Processor represent resource processor
Expand Down
9 changes: 5 additions & 4 deletions pkg/processor/processor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@ import (
"io"
"os"
"strings"
"teredix/pkg/resource"
"teredix/pkg/source"
"teredix/pkg/source/scanner"
"teredix/pkg/storage"
"testing"
"time"

"github.com/shahariaazam/teredix/pkg/resource"
"github.com/shahariaazam/teredix/pkg/source"
"github.com/shahariaazam/teredix/pkg/source/scanner"
"github.com/shahariaazam/teredix/pkg/storage"

"github.com/stretchr/testify/mock"
)

Expand Down
5 changes: 3 additions & 2 deletions pkg/source/scanner/aws_ec2.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ package scanner
import (
"context"
"fmt"
"teredix/pkg"
"teredix/pkg/resource"

"github.com/shahariaazam/teredix/pkg"
"github.com/shahariaazam/teredix/pkg/resource"

"github.com/aws/aws-sdk-go-v2/service/ec2/types"

Expand Down
5 changes: 3 additions & 2 deletions pkg/source/scanner/aws_ec2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ package scanner
import (
"context"
"errors"
"teredix/pkg"
"teredix/pkg/resource"
"testing"

"github.com/shahariaazam/teredix/pkg"
"github.com/shahariaazam/teredix/pkg/resource"

"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/service/ec2/types"
"github.com/stretchr/testify/assert"
Expand Down
7 changes: 4 additions & 3 deletions pkg/source/scanner/aws_ecr.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ package scanner
import (
"context"
"fmt"
"teredix/pkg"
"teredix/pkg/resource"
"teredix/pkg/util"

"github.com/shahariaazam/teredix/pkg"
"github.com/shahariaazam/teredix/pkg/resource"
"github.com/shahariaazam/teredix/pkg/util"

"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/service/ecr"
Expand Down
5 changes: 3 additions & 2 deletions pkg/source/scanner/aws_ecr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package scanner

import (
"context"
"teredix/pkg"
"teredix/pkg/resource"
"testing"

"github.com/shahariaazam/teredix/pkg"
"github.com/shahariaazam/teredix/pkg/resource"

"github.com/aws/aws-sdk-go-v2/service/resourcegroupstaggingapi"

"github.com/aws/aws-sdk-go/aws"
Expand Down
7 changes: 4 additions & 3 deletions pkg/source/scanner/aws_rds.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ package scanner

import (
"fmt"
"teredix/pkg"
"teredix/pkg/resource"
"teredix/pkg/util"

"github.com/shahariaazam/teredix/pkg"
"github.com/shahariaazam/teredix/pkg/resource"
"github.com/shahariaazam/teredix/pkg/util"

"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/rds"
Expand Down
3 changes: 2 additions & 1 deletion pkg/source/scanner/aws_rds_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package scanner

import (
"teredix/pkg/resource"
"testing"

"github.com/shahariaazam/teredix/pkg/resource"

"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/rds"
"github.com/stretchr/testify/mock"
Expand Down
7 changes: 4 additions & 3 deletions pkg/source/scanner/aws_s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ package scanner

import (
"fmt"
"teredix/pkg"
"teredix/pkg/resource"
"teredix/pkg/util"

"github.com/shahariaazam/teredix/pkg"
"github.com/shahariaazam/teredix/pkg/resource"
"github.com/shahariaazam/teredix/pkg/util"

"github.com/aws/aws-sdk-go/aws"

Expand Down
3 changes: 2 additions & 1 deletion pkg/source/scanner/aws_s3_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package scanner

import (
"teredix/pkg/resource"
"testing"

"github.com/shahariaazam/teredix/pkg/resource"

"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/s3"
"github.com/stretchr/testify/mock"
Expand Down
7 changes: 4 additions & 3 deletions pkg/source/scanner/fs_scanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ import (
"io/ioutil"
"os"
"path/filepath"
"teredix/pkg"
"teredix/pkg/resource"
"teredix/pkg/util"

"github.com/shahariaazam/teredix/pkg"
"github.com/shahariaazam/teredix/pkg/resource"
"github.com/shahariaazam/teredix/pkg/util"
)

// FsScanner store configuration for file system scanner
Expand Down
3 changes: 2 additions & 1 deletion pkg/source/scanner/fs_scanner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ import (
"fmt"
"os"
"path/filepath"
"teredix/pkg/resource"
"testing"

"github.com/shahariaazam/teredix/pkg/resource"

"github.com/stretchr/testify/assert"
)

Expand Down
7 changes: 4 additions & 3 deletions pkg/source/scanner/github_repo_scanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ package scanner
import (
"context"
"fmt"
"teredix/pkg"
"teredix/pkg/resource"
"teredix/pkg/util"

"github.com/shahariaazam/teredix/pkg"
"github.com/shahariaazam/teredix/pkg/resource"
"github.com/shahariaazam/teredix/pkg/util"

"github.com/google/go-github/v50/github"
)
Expand Down
3 changes: 2 additions & 1 deletion pkg/source/scanner/github_repo_scanner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ import (
"net/http"
"net/http/httptest"
"strings"
"teredix/pkg/resource"
"testing"

"github.com/shahariaazam/teredix/pkg/resource"

"github.com/google/go-github/v50/github"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
Expand Down
2 changes: 1 addition & 1 deletion pkg/source/scanner/scanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
package scanner

import (
"teredix/pkg/resource"
"github.com/shahariaazam/teredix/pkg/resource"
)

// Scanner interface to build different scanner
Expand Down
2 changes: 1 addition & 1 deletion pkg/source/scanner/scanner_mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
package scanner

import (
"teredix/pkg/resource"
"github.com/shahariaazam/teredix/pkg/resource"

"github.com/stretchr/testify/mock"
)
Expand Down
7 changes: 4 additions & 3 deletions pkg/source/source.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ package source

import (
"context"
"teredix/pkg"
"teredix/pkg/config"
"teredix/pkg/source/scanner"

"github.com/shahariaazam/teredix/pkg"
"github.com/shahariaazam/teredix/pkg/config"
"github.com/shahariaazam/teredix/pkg/source/scanner"

"github.com/aws/aws-sdk-go-v2/service/resourcegroupstaggingapi"

Expand Down
7 changes: 4 additions & 3 deletions pkg/source/source_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ package source

import (
"context"
"teredix/pkg"
"teredix/pkg/config"
"teredix/pkg/source/scanner"
"testing"

"github.com/shahariaazam/teredix/pkg"
"github.com/shahariaazam/teredix/pkg/config"
"github.com/shahariaazam/teredix/pkg/source/scanner"

configv2 "github.com/aws/aws-sdk-go-v2/config"
credentialsv2 "github.com/aws/aws-sdk-go-v2/credentials"
"github.com/aws/aws-sdk-go-v2/service/ecr"
Expand Down
5 changes: 3 additions & 2 deletions pkg/storage/postgresql.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ package storage
import (
"database/sql"
"strings"
"teredix/pkg/config"
"teredix/pkg/resource"

"github.com/shahariaazam/teredix/pkg/config"
"github.com/shahariaazam/teredix/pkg/resource"

_ "github.com/lib/pq" // postgresql driver
)
Expand Down
5 changes: 3 additions & 2 deletions pkg/storage/postgresql_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ package storage
import (
"errors"
"reflect"
"teredix/pkg/config"
"teredix/pkg/resource"
"testing"

"github.com/shahariaazam/teredix/pkg/config"
"github.com/shahariaazam/teredix/pkg/resource"

"github.com/stretchr/testify/assert"

sqlmock "github.com/DATA-DOG/go-sqlmock"
Expand Down
5 changes: 3 additions & 2 deletions pkg/storage/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ import (
"database/sql"
"fmt"
"strings"
"teredix/pkg/config"
"teredix/pkg/resource"

"github.com/shahariaazam/teredix/pkg/config"
"github.com/shahariaazam/teredix/pkg/resource"
)

// ResourceFilter configure the filter
Expand Down
4 changes: 2 additions & 2 deletions pkg/storage/storage_mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
package storage

import (
"teredix/pkg/config"
"github.com/shahariaazam/teredix/pkg/config"

"github.com/stretchr/testify/mock"

"teredix/pkg/resource"
"github.com/shahariaazam/teredix/pkg/resource"
)

// Mock is an autogenerated mock type for the Storage type
Expand Down
3 changes: 2 additions & 1 deletion pkg/storage/storage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package storage

import (
"reflect"
"teredix/pkg/config"
"testing"

"github.com/shahariaazam/teredix/pkg/config"

"github.com/stretchr/testify/assert"
)

Expand Down
3 changes: 2 additions & 1 deletion pkg/visualize/cytoscape/cytoscape.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import (
"bytes"
"embed"
"html/template"
"teredix/pkg/storage"

"github.com/shahariaazam/teredix/pkg/storage"
)

//go:embed index.html
Expand Down