Skip to content

Commit

Permalink
gofmt
Browse files Browse the repository at this point in the history
Signed-off-by: Romain BELORGEY <romain.belorgey@gmail.com>
  • Loading branch information
RomainBelorgey committed Sep 6, 2021
1 parent 6fbb1f1 commit 6e40bf0
Show file tree
Hide file tree
Showing 19 changed files with 19 additions and 18 deletions.
2 changes: 1 addition & 1 deletion internal/commands/account/info.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ import (

"github.com/docker/hub-tool/internal/ansi"
"github.com/docker/hub-tool/internal/format"
"github.com/docker/hub-tool/pkg/hub"
"github.com/docker/hub-tool/internal/metrics"
"github.com/docker/hub-tool/pkg/hub"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion internal/commands/account/ratelimiting.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ import (

"github.com/docker/hub-tool/internal/ansi"
"github.com/docker/hub-tool/internal/format"
"github.com/docker/hub-tool/pkg/hub"
"github.com/docker/hub-tool/internal/metrics"
"github.com/docker/hub-tool/pkg/hub"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion internal/commands/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ import (
"github.com/docker/hub-tool/internal/ansi"
"github.com/docker/hub-tool/internal/credentials"
"github.com/docker/hub-tool/internal/errdef"
"github.com/docker/hub-tool/pkg/hub"
"github.com/docker/hub-tool/internal/login"
"github.com/docker/hub-tool/internal/metrics"
"github.com/docker/hub-tool/pkg/hub"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion internal/commands/org/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ import (
"github.com/docker/hub-tool/internal/ansi"
"github.com/docker/hub-tool/internal/format"
"github.com/docker/hub-tool/internal/format/tabwriter"
"github.com/docker/hub-tool/pkg/hub"
"github.com/docker/hub-tool/internal/metrics"
"github.com/docker/hub-tool/pkg/hub"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion internal/commands/org/members.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ import (
"github.com/docker/hub-tool/internal/ansi"
"github.com/docker/hub-tool/internal/format"
"github.com/docker/hub-tool/internal/format/tabwriter"
"github.com/docker/hub-tool/pkg/hub"
"github.com/docker/hub-tool/internal/metrics"
"github.com/docker/hub-tool/pkg/hub"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion internal/commands/org/teams.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ import (
"github.com/docker/hub-tool/internal/ansi"
"github.com/docker/hub-tool/internal/format"
"github.com/docker/hub-tool/internal/format/tabwriter"
"github.com/docker/hub-tool/pkg/hub"
"github.com/docker/hub-tool/internal/metrics"
"github.com/docker/hub-tool/pkg/hub"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion internal/commands/repo/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ import (
"github.com/docker/hub-tool/internal/ansi"
"github.com/docker/hub-tool/internal/format"
"github.com/docker/hub-tool/internal/format/tabwriter"
"github.com/docker/hub-tool/pkg/hub"
"github.com/docker/hub-tool/internal/metrics"
"github.com/docker/hub-tool/pkg/hub"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion internal/commands/repo/rm.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ import (
"github.com/spf13/cobra"

"github.com/docker/hub-tool/internal/ansi"
"github.com/docker/hub-tool/pkg/hub"
"github.com/docker/hub-tool/internal/metrics"
"github.com/docker/hub-tool/pkg/hub"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion internal/commands/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ import (
"github.com/docker/hub-tool/internal/commands/tag"
"github.com/docker/hub-tool/internal/commands/token"
"github.com/docker/hub-tool/internal/credentials"
"github.com/docker/hub-tool/pkg/hub"
"github.com/docker/hub-tool/internal/login"
"github.com/docker/hub-tool/pkg/hub"
)

type options struct {
Expand Down
2 changes: 1 addition & 1 deletion internal/commands/tag/inspect.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ import (
"github.com/spf13/cobra"

"github.com/docker/hub-tool/internal/ansi"
"github.com/docker/hub-tool/pkg/hub"
"github.com/docker/hub-tool/internal/metrics"
"github.com/docker/hub-tool/pkg/hub"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion internal/commands/tag/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ import (
"github.com/docker/hub-tool/internal/ansi"
"github.com/docker/hub-tool/internal/format"
"github.com/docker/hub-tool/internal/format/tabwriter"
"github.com/docker/hub-tool/pkg/hub"
"github.com/docker/hub-tool/internal/metrics"
"github.com/docker/hub-tool/pkg/hub"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion internal/commands/tag/rm.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ import (
"github.com/docker/distribution/reference"
"github.com/docker/hub-tool/internal/ansi"
"github.com/docker/hub-tool/internal/errdef"
"github.com/docker/hub-tool/pkg/hub"
"github.com/docker/hub-tool/internal/metrics"
"github.com/docker/hub-tool/pkg/hub"
"github.com/pkg/errors"
"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/commands/token/activate.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ import (
"github.com/spf13/cobra"

"github.com/docker/hub-tool/internal/ansi"
"github.com/docker/hub-tool/pkg/hub"
"github.com/docker/hub-tool/internal/metrics"
"github.com/docker/hub-tool/pkg/hub"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion internal/commands/token/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ import (

"github.com/docker/hub-tool/internal/ansi"
"github.com/docker/hub-tool/internal/format"
"github.com/docker/hub-tool/pkg/hub"
"github.com/docker/hub-tool/internal/metrics"
"github.com/docker/hub-tool/pkg/hub"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion internal/commands/token/deactivate.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ import (
"github.com/spf13/cobra"

"github.com/docker/hub-tool/internal/ansi"
"github.com/docker/hub-tool/pkg/hub"
"github.com/docker/hub-tool/internal/metrics"
"github.com/docker/hub-tool/pkg/hub"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion internal/commands/token/inspect.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ import (

"github.com/docker/hub-tool/internal/ansi"
"github.com/docker/hub-tool/internal/format"
"github.com/docker/hub-tool/pkg/hub"
"github.com/docker/hub-tool/internal/metrics"
"github.com/docker/hub-tool/pkg/hub"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion internal/commands/token/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ import (
"github.com/docker/hub-tool/internal/ansi"
"github.com/docker/hub-tool/internal/format"
"github.com/docker/hub-tool/internal/format/tabwriter"
"github.com/docker/hub-tool/pkg/hub"
"github.com/docker/hub-tool/internal/metrics"
"github.com/docker/hub-tool/pkg/hub"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion internal/commands/token/rm.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ import (
"github.com/spf13/cobra"

"github.com/docker/hub-tool/internal/ansi"
"github.com/docker/hub-tool/pkg/hub"
"github.com/docker/hub-tool/internal/metrics"
"github.com/docker/hub-tool/pkg/hub"
)

const (
Expand Down
1 change: 1 addition & 0 deletions pkg/hub/ratelimiting.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ var (
second = "https://registry-1.docker.io/v2/ratelimitpreview/test/manifests/latest"
)

// SetURLs change the base urls used to check ratelimiting values
func SetURLs(newFirst, newSecond string) {
first = newFirst
second = newSecond
Expand Down

0 comments on commit 6e40bf0

Please sign in to comment.