Skip to content

Commit 8eb3f1a

Browse files
Skarlsomichelvocks
authored andcommitted
Extracting building logic into a workers package (#115)
* Extracting building logic into a workers package. * Fixed invalid import path.
1 parent 753ee64 commit 8eb3f1a

29 files changed

+20
-21
lines changed

Gopkg.lock

+10-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cmd/gaia/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import (
1212
"github.com/gaia-pipeline/flag"
1313
"github.com/gaia-pipeline/gaia"
1414
"github.com/gaia-pipeline/gaia/handlers"
15-
"github.com/gaia-pipeline/gaia/pipeline"
1615
"github.com/gaia-pipeline/gaia/services"
16+
"github.com/gaia-pipeline/gaia/workers/pipeline"
1717
hclog "github.com/hashicorp/go-hclog"
1818
"github.com/labstack/echo"
1919
)

handlers/hook.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import (
1313

1414
"github.com/gaia-pipeline/gaia"
1515

16-
"github.com/gaia-pipeline/gaia/pipeline"
1716
"github.com/gaia-pipeline/gaia/services"
17+
"github.com/gaia-pipeline/gaia/workers/pipeline"
1818

1919
"github.com/labstack/echo"
2020
)

handlers/hook_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import (
1111
"time"
1212

1313
"github.com/gaia-pipeline/gaia"
14-
"github.com/gaia-pipeline/gaia/pipeline"
1514
"github.com/gaia-pipeline/gaia/services"
15+
"github.com/gaia-pipeline/gaia/workers/pipeline"
1616
hclog "github.com/hashicorp/go-hclog"
1717
"github.com/labstack/echo"
1818
)

handlers/pipeline.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"time"
88

99
"github.com/gaia-pipeline/gaia"
10-
"github.com/gaia-pipeline/gaia/pipeline"
1110
"github.com/gaia-pipeline/gaia/services"
11+
"github.com/gaia-pipeline/gaia/workers/pipeline"
1212
"github.com/labstack/echo"
1313
uuid "github.com/satori/go.uuid"
1414
)

handlers/pipeline_test.go

+3-5
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,10 @@ import (
1111
"testing"
1212
"time"
1313

14-
"github.com/gaia-pipeline/gaia/scheduler"
15-
16-
"github.com/gaia-pipeline/gaia/services"
17-
1814
"github.com/gaia-pipeline/gaia"
19-
"github.com/gaia-pipeline/gaia/pipeline"
15+
"github.com/gaia-pipeline/gaia/services"
16+
"github.com/gaia-pipeline/gaia/workers/pipeline"
17+
"github.com/gaia-pipeline/gaia/workers/scheduler"
2018
hclog "github.com/hashicorp/go-hclog"
2119
"github.com/labstack/echo"
2220
)

plugin/plugin.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import (
1111
"time"
1212

1313
"github.com/gaia-pipeline/gaia"
14-
"github.com/gaia-pipeline/gaia/scheduler"
1514
"github.com/gaia-pipeline/gaia/security"
15+
"github.com/gaia-pipeline/gaia/workers/scheduler"
1616
"github.com/gaia-pipeline/protobuf"
1717
plugin "github.com/hashicorp/go-plugin"
1818
)

services/service_provider.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import (
55

66
"github.com/gaia-pipeline/gaia"
77
"github.com/gaia-pipeline/gaia/plugin"
8-
"github.com/gaia-pipeline/gaia/scheduler"
98
"github.com/gaia-pipeline/gaia/security"
109
"github.com/gaia-pipeline/gaia/store"
10+
"github.com/gaia-pipeline/gaia/workers/scheduler"
1111
)
1212

1313
// storeService is an instance of store.

services/service_provider_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66
"reflect"
77
"testing"
88

9-
"github.com/gaia-pipeline/gaia/scheduler"
109
"github.com/gaia-pipeline/gaia/security"
10+
"github.com/gaia-pipeline/gaia/workers/scheduler"
1111

1212
"github.com/gaia-pipeline/gaia"
1313
"github.com/gaia-pipeline/gaia/store"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)