sort imports

This commit is contained in:
Gwendolyn 2022-03-25 12:17:05 +01:00
parent 5864dd2c41
commit 075321e0e6
9 changed files with 26 additions and 13 deletions

View File

@ -2,10 +2,11 @@ package events
import (
"context"
"log"
"github.com/docker/docker/api/types"
dockerEvents "github.com/docker/docker/api/types/events"
"github.com/docker/docker/client"
"log"
)
type Container struct {

View File

@ -1,9 +1,10 @@
package events
import (
"log"
dockerEvents "github.com/docker/docker/api/types/events"
"github.com/docker/docker/client"
"log"
)
//goland:noinspection GoSnakeCaseUsage

View File

@ -2,10 +2,11 @@ package events
import (
"context"
"log"
"github.com/docker/docker/api/types"
dockerEvents "github.com/docker/docker/api/types/events"
"github.com/docker/docker/client"
"log"
)
type Network struct {

View File

@ -2,10 +2,11 @@ package events
import (
"context"
"log"
"github.com/docker/docker/api/types"
dockerEvents "github.com/docker/docker/api/types/events"
"github.com/docker/docker/client"
"log"
)
type Volume struct {

View File

@ -2,11 +2,13 @@ package handlers
import (
"docker-event-handler/events"
"errors"
"fmt"
"gopkg.in/ini.v1"
"strings"
"text/template"
"gopkg.in/ini.v1"
)
type Container struct {

View File

@ -1,15 +1,17 @@
package handlers
import (
"bytes"
"docker-event-handler/events"
"bytes"
"errors"
"fmt"
"os/exec"
"text/template"
"github.com/google/shlex"
"github.com/ryanuber/go-glob"
"gopkg.in/ini.v1"
"os/exec"
"text/template"
)
func ReadFromConfig(section *ini.Section) (Handler, error) {

View File

@ -2,11 +2,13 @@ package handlers
import (
"docker-event-handler/events"
"errors"
"fmt"
"gopkg.in/ini.v1"
"strings"
"text/template"
"gopkg.in/ini.v1"
)
type Network struct {

View File

@ -2,11 +2,13 @@ package handlers
import (
"docker-event-handler/events"
"errors"
"fmt"
"gopkg.in/ini.v1"
"strings"
"text/template"
"gopkg.in/ini.v1"
)
type Volume struct {

View File

@ -1,11 +1,10 @@
package main
import (
"context"
"docker-event-handler/events"
"docker-event-handler/handlers"
"github.com/docker/docker/api/types/filters"
"gopkg.in/ini.v1"
"context"
"log"
"os"
"strconv"
@ -13,7 +12,9 @@ import (
"github.com/docker/docker/api/types"
dockerEvents "github.com/docker/docker/api/types/events"
"github.com/docker/docker/api/types/filters"
"github.com/docker/docker/client"
"gopkg.in/ini.v1"
)
type Configuration struct {