Skip to content

Commit 7f0234b

Browse files
committed
restructured codebase to be flatter and easier to navigate
1 parent 8b415da commit 7f0234b

23 files changed

+33
-32
lines changed

service/config/config.go renamed to config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"github.com/pkg/errors"
1111
"github.com/robertkrimen/otto"
1212

13-
"github.com/picostack/pico/service/task"
13+
"github.com/picostack/pico/task"
1414
)
1515

1616
// State represents a desired system state

service/config/config_test.go renamed to config/config_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"github.com/robertkrimen/otto"
88
"github.com/stretchr/testify/assert"
99

10-
"github.com/picostack/pico/service/task"
10+
"github.com/picostack/pico/task"
1111
)
1212

1313
func Test_applyFileTargets(t *testing.T) {

service/executor/cmd.go renamed to executor/cmd.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"github.com/pkg/errors"
55
"go.uber.org/zap"
66

7-
"github.com/picostack/pico/service/secret"
8-
"github.com/picostack/pico/service/task"
7+
"github.com/picostack/pico/secret"
8+
"github.com/picostack/pico/task"
99
)
1010

1111
var _ Executor = &CommandExecutor{}

service/executor/cmd_test.go renamed to executor/cmd_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import (
77

88
"golang.org/x/sync/errgroup"
99

10-
"github.com/picostack/pico/service/executor"
11-
"github.com/picostack/pico/service/secret/memory"
12-
"github.com/picostack/pico/service/task"
10+
"github.com/picostack/pico/executor"
11+
"github.com/picostack/pico/secret/memory"
12+
"github.com/picostack/pico/task"
1313
)
1414

1515
func TestMain(m *testing.M) {

service/executor/executor.go renamed to executor/executor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package executor
22

3-
import "github.com/picostack/pico/service/task"
3+
import "github.com/picostack/pico/task"
44

55
// Executor describes a type that can handle events and react to them. An
66
// executor is also responsible for hydrating a target with secrets.

service/executor/printer.go renamed to executor/printer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package executor
33
import (
44
"fmt"
55

6-
"github.com/picostack/pico/service/task"
6+
"github.com/picostack/pico/task"
77
)
88

99
// Printer implements an executor that doesn't actually execute, just prints.

service/reconfigurer/git.go renamed to reconfigurer/git.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@ import (
66
"time"
77

88
"github.com/Southclaws/gitwatch"
9-
"github.com/picostack/pico/service/config"
10-
"github.com/picostack/pico/service/watcher"
119
"github.com/pkg/errors"
1210
"go.uber.org/zap"
1311
"gopkg.in/src-d/go-git.v4/plumbing/transport"
12+
13+
"github.com/picostack/pico/config"
14+
"github.com/picostack/pico/watcher"
1415
)
1516

1617
var _ Provider = &GitProvider{}

service/reconfigurer/reconfigurer.go renamed to reconfigurer/reconfigurer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package reconfigurer
22

33
import (
4-
"github.com/picostack/pico/service/watcher"
4+
"github.com/picostack/pico/watcher"
55
)
66

77
// Provider describes a type that can provide config state events to a target

service/reconfigurer/static.go renamed to reconfigurer/static.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package reconfigurer
22

33
import (
4-
"github.com/picostack/pico/service/config"
5-
"github.com/picostack/pico/service/watcher"
4+
"github.com/picostack/pico/config"
5+
"github.com/picostack/pico/watcher"
66
)
77

88
var _ Provider = &Static{}

service/secret/memory/memory.go renamed to secret/memory/memory.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package memory
22

33
import (
4-
"github.com/picostack/pico/service/secret"
4+
"github.com/picostack/pico/secret"
55
)
66

77
// MemorySecrets implements a simple in-memory secret.Store for testing

0 commit comments

Comments
 (0)