Skip to content

Commit

Permalink
chore: fix go imports
Browse files Browse the repository at this point in the history
Signed-off-by: Bradley Jones <[email protected]>
  • Loading branch information
bradleyjones committed Sep 5, 2023
1 parent fe4ff60 commit 3967524
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 11 deletions.
5 changes: 3 additions & 2 deletions cmd/anchore-adapter/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ import (
"errors"
"net/http"

"github.com/anchore/harbor-scanner-adapter/pkg/adapter/anchore"
api "github.com/anchore/harbor-scanner-adapter/pkg/http/api/v1"
"github.com/gorilla/mux"
log "github.com/sirupsen/logrus"

"github.com/anchore/harbor-scanner-adapter/pkg/adapter/anchore"
api "github.com/anchore/harbor-scanner-adapter/pkg/http/api/v1"
)

func main() {
Expand Down
5 changes: 3 additions & 2 deletions pkg/adapter/anchore/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ import (
"strings"
"time"

"github.com/anchore/harbor-scanner-adapter/pkg/adapter/anchore/credential"
"github.com/anchore/harbor-scanner-adapter/pkg/model/anchore"
"github.com/parnurzeal/gorequest"
log "github.com/sirupsen/logrus"

"github.com/anchore/harbor-scanner-adapter/pkg/adapter/anchore/credential"
"github.com/anchore/harbor-scanner-adapter/pkg/model/anchore"
)

const (
Expand Down
3 changes: 2 additions & 1 deletion pkg/adapter/anchore/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ import (
"strconv"
"strings"

"github.com/anchore/harbor-scanner-adapter/pkg/adapter/anchore/client"
log "github.com/sirupsen/logrus"

"github.com/anchore/harbor-scanner-adapter/pkg/adapter/anchore/client"
)

type AdapterConfig struct {
Expand Down
3 changes: 2 additions & 1 deletion pkg/adapter/anchore/result_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ package anchore
import (
"fmt"

"github.com/anchore/harbor-scanner-adapter/pkg/model/harbor"
log "github.com/sirupsen/logrus"

"github.com/anchore/harbor-scanner-adapter/pkg/model/harbor"
)

// The result storage system supports an async loading of the merged results of a vuln response and descriptions
Expand Down
3 changes: 2 additions & 1 deletion pkg/adapter/anchore/result_store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ import (
"testing"
"time"

"github.com/anchore/harbor-scanner-adapter/pkg/model/harbor"
"github.com/stretchr/testify/assert"

"github.com/anchore/harbor-scanner-adapter/pkg/model/harbor"
)

func TestMemoryResultStore_HasResult(t *testing.T) {
Expand Down
5 changes: 3 additions & 2 deletions pkg/http/api/v1/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ import (
"net/http"
"strings"

"github.com/gorilla/mux"
log "github.com/sirupsen/logrus"

"github.com/anchore/harbor-scanner-adapter/pkg/adapter"
"github.com/anchore/harbor-scanner-adapter/pkg/adapter/anchore"
"github.com/anchore/harbor-scanner-adapter/pkg/model/harbor"
"github.com/gorilla/mux"
log "github.com/sirupsen/logrus"
)

const (
Expand Down
3 changes: 2 additions & 1 deletion pkg/http/api/v1/handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ import (
"strings"
"testing"

"github.com/sirupsen/logrus"

"github.com/anchore/harbor-scanner-adapter/pkg/adapter"
"github.com/anchore/harbor-scanner-adapter/pkg/adapter/anchore"
"github.com/anchore/harbor-scanner-adapter/pkg/model/harbor"
"github.com/sirupsen/logrus"
)

const (
Expand Down
3 changes: 2 additions & 1 deletion pkg/model/harbor/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ package harbor
import (
"bytes"
"fmt"
log "github.com/sirupsen/logrus"
"strings"
"time"

log "github.com/sirupsen/logrus"
)

const (
Expand Down

0 comments on commit 3967524

Please sign in to comment.