sort imports
parent
5864dd2c41
commit
075321e0e6
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
7
main.go
7
main.go
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue