sort imports
This commit is contained in:
parent
5864dd2c41
commit
075321e0e6
|
@ -2,10 +2,11 @@ package events
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
"log"
|
||||||
|
|
||||||
"github.com/docker/docker/api/types"
|
"github.com/docker/docker/api/types"
|
||||||
dockerEvents "github.com/docker/docker/api/types/events"
|
dockerEvents "github.com/docker/docker/api/types/events"
|
||||||
"github.com/docker/docker/client"
|
"github.com/docker/docker/client"
|
||||||
"log"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Container struct {
|
type Container struct {
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
package events
|
package events
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"log"
|
||||||
|
|
||||||
dockerEvents "github.com/docker/docker/api/types/events"
|
dockerEvents "github.com/docker/docker/api/types/events"
|
||||||
"github.com/docker/docker/client"
|
"github.com/docker/docker/client"
|
||||||
"log"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
//goland:noinspection GoSnakeCaseUsage
|
//goland:noinspection GoSnakeCaseUsage
|
||||||
|
|
|
@ -2,10 +2,11 @@ package events
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
"log"
|
||||||
|
|
||||||
"github.com/docker/docker/api/types"
|
"github.com/docker/docker/api/types"
|
||||||
dockerEvents "github.com/docker/docker/api/types/events"
|
dockerEvents "github.com/docker/docker/api/types/events"
|
||||||
"github.com/docker/docker/client"
|
"github.com/docker/docker/client"
|
||||||
"log"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Network struct {
|
type Network struct {
|
||||||
|
|
|
@ -2,10 +2,11 @@ package events
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
"log"
|
||||||
|
|
||||||
"github.com/docker/docker/api/types"
|
"github.com/docker/docker/api/types"
|
||||||
dockerEvents "github.com/docker/docker/api/types/events"
|
dockerEvents "github.com/docker/docker/api/types/events"
|
||||||
"github.com/docker/docker/client"
|
"github.com/docker/docker/client"
|
||||||
"log"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Volume struct {
|
type Volume struct {
|
||||||
|
|
|
@ -2,11 +2,13 @@ package handlers
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"docker-event-handler/events"
|
"docker-event-handler/events"
|
||||||
|
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"gopkg.in/ini.v1"
|
|
||||||
"strings"
|
"strings"
|
||||||
"text/template"
|
"text/template"
|
||||||
|
|
||||||
|
"gopkg.in/ini.v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Container struct {
|
type Container struct {
|
||||||
|
|
|
@ -1,15 +1,17 @@
|
||||||
package handlers
|
package handlers
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
|
||||||
"docker-event-handler/events"
|
"docker-event-handler/events"
|
||||||
|
|
||||||
|
"bytes"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"os/exec"
|
||||||
|
"text/template"
|
||||||
|
|
||||||
"github.com/google/shlex"
|
"github.com/google/shlex"
|
||||||
"github.com/ryanuber/go-glob"
|
"github.com/ryanuber/go-glob"
|
||||||
"gopkg.in/ini.v1"
|
"gopkg.in/ini.v1"
|
||||||
"os/exec"
|
|
||||||
"text/template"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func ReadFromConfig(section *ini.Section) (Handler, error) {
|
func ReadFromConfig(section *ini.Section) (Handler, error) {
|
||||||
|
|
|
@ -2,11 +2,13 @@ package handlers
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"docker-event-handler/events"
|
"docker-event-handler/events"
|
||||||
|
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"gopkg.in/ini.v1"
|
|
||||||
"strings"
|
"strings"
|
||||||
"text/template"
|
"text/template"
|
||||||
|
|
||||||
|
"gopkg.in/ini.v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Network struct {
|
type Network struct {
|
||||||
|
|
|
@ -2,11 +2,13 @@ package handlers
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"docker-event-handler/events"
|
"docker-event-handler/events"
|
||||||
|
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"gopkg.in/ini.v1"
|
|
||||||
"strings"
|
"strings"
|
||||||
"text/template"
|
"text/template"
|
||||||
|
|
||||||
|
"gopkg.in/ini.v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Volume struct {
|
type Volume struct {
|
||||||
|
|
7
main.go
7
main.go
|
@ -1,11 +1,10 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
|
||||||
"docker-event-handler/events"
|
"docker-event-handler/events"
|
||||||
"docker-event-handler/handlers"
|
"docker-event-handler/handlers"
|
||||||
"github.com/docker/docker/api/types/filters"
|
|
||||||
"gopkg.in/ini.v1"
|
"context"
|
||||||
"log"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
@ -13,7 +12,9 @@ import (
|
||||||
|
|
||||||
"github.com/docker/docker/api/types"
|
"github.com/docker/docker/api/types"
|
||||||
dockerEvents "github.com/docker/docker/api/types/events"
|
dockerEvents "github.com/docker/docker/api/types/events"
|
||||||
|
"github.com/docker/docker/api/types/filters"
|
||||||
"github.com/docker/docker/client"
|
"github.com/docker/docker/client"
|
||||||
|
"gopkg.in/ini.v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Configuration struct {
|
type Configuration struct {
|
||||||
|
|
Loading…
Reference in a new issue