Skip to content

Commit fdfe6fb

Browse files
committed
style(go): run gofmt on changed files
1 parent 08c09f3 commit fdfe6fb

7 files changed

Lines changed: 21 additions & 21 deletions

File tree

boot.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ import (
66
"runtime"
77

88
"github.com/codegangsta/cli"
9+
storagedriver "github.com/docker/distribution/registry/storage/driver"
10+
_ "github.com/docker/distribution/registry/storage/driver/azure"
11+
"github.com/docker/distribution/registry/storage/driver/factory"
12+
_ "github.com/docker/distribution/registry/storage/driver/gcs"
13+
_ "github.com/docker/distribution/registry/storage/driver/s3-aws"
14+
_ "github.com/docker/distribution/registry/storage/driver/swift"
15+
"github.com/kelseyhightower/envconfig"
916
"github.com/teamhephy/builder/pkg"
1017
"github.com/teamhephy/builder/pkg/cleaner"
1118
"github.com/teamhephy/builder/pkg/conf"
@@ -14,13 +21,6 @@ import (
1421
"github.com/teamhephy/builder/pkg/sshd"
1522
"github.com/teamhephy/builder/pkg/sys"
1623
pkglog "github.com/teamhephy/pkg/log"
17-
storagedriver "github.com/docker/distribution/registry/storage/driver"
18-
_ "github.com/docker/distribution/registry/storage/driver/azure"
19-
"github.com/docker/distribution/registry/storage/driver/factory"
20-
_ "github.com/docker/distribution/registry/storage/driver/gcs"
21-
_ "github.com/docker/distribution/registry/storage/driver/s3-aws"
22-
_ "github.com/docker/distribution/registry/storage/driver/swift"
23-
"github.com/kelseyhightower/envconfig"
2424
kcl "k8s.io/kubernetes/pkg/client/unversioned"
2525
)
2626

pkg/cleaner/cleaner.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ import (
1010
"strings"
1111
"time"
1212

13+
"github.com/docker/distribution/context"
14+
storagedriver "github.com/docker/distribution/registry/storage/driver"
1315
"github.com/teamhephy/builder/pkg/gitreceive"
1416
"github.com/teamhephy/builder/pkg/k8s"
1517
"github.com/teamhephy/builder/pkg/sys"
1618
"github.com/teamhephy/pkg/log"
17-
"github.com/docker/distribution/context"
18-
storagedriver "github.com/docker/distribution/registry/storage/driver"
1919
"k8s.io/kubernetes/pkg/api"
2020
"k8s.io/kubernetes/pkg/fields"
2121
"k8s.io/kubernetes/pkg/labels"

pkg/gitreceive/build.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ import (
1111
"path/filepath"
1212
"strings"
1313

14+
"github.com/docker/distribution/context"
15+
storagedriver "github.com/docker/distribution/registry/storage/driver"
1416
"github.com/teamhephy/builder/pkg/controller"
1517
"github.com/teamhephy/builder/pkg/git"
1618
"github.com/teamhephy/builder/pkg/k8s"
@@ -19,8 +21,6 @@ import (
1921
deisAPI "github.com/teamhephy/controller-sdk-go/api"
2022
"github.com/teamhephy/controller-sdk-go/hooks"
2123
"github.com/teamhephy/pkg/log"
22-
"github.com/docker/distribution/context"
23-
storagedriver "github.com/docker/distribution/registry/storage/driver"
2424
"gopkg.in/yaml.v2"
2525
"k8s.io/kubernetes/pkg/api"
2626
client "k8s.io/kubernetes/pkg/client/unversioned"

pkg/gitreceive/build_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ import (
1111
"testing"
1212

1313
"github.com/arschles/assert"
14+
"github.com/docker/distribution/context"
15+
"github.com/docker/distribution/registry/storage/driver/factory"
16+
_ "github.com/docker/distribution/registry/storage/driver/inmemory"
1417
builderconf "github.com/teamhephy/builder/pkg/conf"
1518
"github.com/teamhephy/builder/pkg/storage"
1619
"github.com/teamhephy/builder/pkg/sys"
1720
"github.com/teamhephy/controller-sdk-go/api"
1821
"github.com/teamhephy/pkg/log"
19-
"github.com/docker/distribution/context"
20-
"github.com/docker/distribution/registry/storage/driver/factory"
21-
_ "github.com/docker/distribution/registry/storage/driver/inmemory"
2222
"gopkg.in/yaml.v2"
2323
)
2424

pkg/gitreceive/config_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ type checkCase struct {
1313

1414
func TestCheckDurations(t *testing.T) {
1515
cases := map[checkCase]checkCase{
16-
checkCase{100, 300000, 500, 300000}: {100, 300000, 500, 300000},
17-
checkCase{0, 300000, 500, 300000}: {100, 300000, 500, 300000},
18-
checkCase{100, 300000, 0, 300000}: {100, 300000, 500, 300000},
19-
checkCase{300000, 300000, 500, 300000}: {100, 300000, 500, 300000},
20-
checkCase{100, 300000, 300000, 300000}: {100, 300000, 500, 300000},
16+
{100, 300000, 500, 300000}: {100, 300000, 500, 300000},
17+
{0, 300000, 500, 300000}: {100, 300000, 500, 300000},
18+
{100, 300000, 0, 300000}: {100, 300000, 500, 300000},
19+
{300000, 300000, 500, 300000}: {100, 300000, 500, 300000},
20+
{100, 300000, 300000, 300000}: {100, 300000, 500, 300000},
2121
}
2222

2323
var cnf Config

pkg/gitreceive/k8s_util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"fmt"
66
"time"
77

8-
"github.com/teamhephy/builder/pkg/k8s"
98
"github.com/pborman/uuid"
9+
"github.com/teamhephy/builder/pkg/k8s"
1010
"k8s.io/kubernetes/pkg/api"
1111
apierrors "k8s.io/kubernetes/pkg/api/errors"
1212
client "k8s.io/kubernetes/pkg/client/unversioned"

pkg/gitreceive/run.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ import (
66
"os"
77
"strings"
88

9+
storagedriver "github.com/docker/distribution/registry/storage/driver"
910
builderconf "github.com/teamhephy/builder/pkg/conf"
1011
"github.com/teamhephy/builder/pkg/sys"
1112
"github.com/teamhephy/pkg/log"
12-
storagedriver "github.com/docker/distribution/registry/storage/driver"
1313

1414
client "k8s.io/kubernetes/pkg/client/unversioned"
1515
)

0 commit comments

Comments
 (0)