Skip to content

Commit

Permalink
chore: format source
Browse files Browse the repository at this point in the history
  • Loading branch information
gondor committed Feb 25, 2019
1 parent a742d3b commit 62d81f1
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion netshare/drivers/ceph.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"os"
"strings"

log "github.com/sirupsen/logrus"
"github.com/docker/go-plugins-helpers/volume"
log "github.com/sirupsen/logrus"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion netshare/drivers/cifs.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"path/filepath"
"strings"

log "github.com/sirupsen/logrus"
"github.com/dickeyxxx/netrc"
"github.com/docker/go-plugins-helpers/volume"
log "github.com/sirupsen/logrus"
)

// Constants defining driver paremeters
Expand Down
2 changes: 1 addition & 1 deletion netshare/drivers/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package drivers
import (
"sync"

log "github.com/sirupsen/logrus"
"github.com/docker/go-plugins-helpers/volume"
log "github.com/sirupsen/logrus"
)

type volumeDriver struct {
Expand Down
2 changes: 1 addition & 1 deletion netshare/drivers/efs.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"regexp"
"strings"

log "github.com/sirupsen/logrus"
"github.com/docker/go-plugins-helpers/volume"
log "github.com/sirupsen/logrus"
)

const (
Expand Down
12 changes: 6 additions & 6 deletions netshare/drivers/mounts.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package drivers

import (
"errors"
"context"
"errors"
"strings"

log "github.com/sirupsen/logrus"
"github.com/docker/go-plugins-helpers/volume"
"github.com/docker/docker/client"
"github.com/docker/docker/api/types"
"github.com/docker/docker/client"
"github.com/docker/go-plugins-helpers/volume"
log "github.com/sirupsen/logrus"
)

const (
Expand Down Expand Up @@ -185,7 +185,7 @@ func checkReferences(volumeName string) int {
var counter = 0
ContainerListResponse, err := cli.ContainerList(context.Background(), types.ContainerListOptions{All: true}) // All : true will return the stopped containers as well.
if err != nil {
log.Fatal(err,". Use -a flag to setup the DOCKER_API_VERSION. Run 'docker-volume-netshare --help' for usage.")
log.Fatal(err, ". Use -a flag to setup the DOCKER_API_VERSION. Run 'docker-volume-netshare --help' for usage.")
}

for _, container := range ContainerListResponse {
Expand All @@ -200,4 +200,4 @@ func checkReferences(volumeName string) int {
}
}
return counter
}
}

0 comments on commit 62d81f1

Please sign in to comment.