Skip to content

Commit 35a0f37

Browse files
committed
chore: move runners from internal package to make them available for import outside DBLab project
1 parent a59e584 commit 35a0f37

File tree

14 files changed

+13
-13
lines changed

14 files changed

+13
-13
lines changed

cmd/database-lab/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ import (
2828
"gitlab.com/postgres-ai/database-lab/v3/internal/provision"
2929
"gitlab.com/postgres-ai/database-lab/v3/internal/provision/pool"
3030
"gitlab.com/postgres-ai/database-lab/v3/internal/provision/resources"
31-
"gitlab.com/postgres-ai/database-lab/v3/internal/provision/runners"
3231
"gitlab.com/postgres-ai/database-lab/v3/internal/retrieval"
3332
"gitlab.com/postgres-ai/database-lab/v3/internal/retrieval/engine/postgres/tools/cont"
3433
"gitlab.com/postgres-ai/database-lab/v3/internal/srv"
3534
"gitlab.com/postgres-ai/database-lab/v3/internal/telemetry"
3635
"gitlab.com/postgres-ai/database-lab/v3/pkg/config"
3736
"gitlab.com/postgres-ai/database-lab/v3/pkg/config/global"
3837
"gitlab.com/postgres-ai/database-lab/v3/pkg/log"
38+
"gitlab.com/postgres-ai/database-lab/v3/pkg/runners"
3939
"gitlab.com/postgres-ai/database-lab/v3/pkg/util/networks"
4040
"gitlab.com/postgres-ai/database-lab/v3/version"
4141
)

internal/embeddedui/embedded_ui.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ import (
1818
"github.com/docker/go-connections/nat"
1919

2020
"gitlab.com/postgres-ai/database-lab/v3/internal/provision/docker"
21-
"gitlab.com/postgres-ai/database-lab/v3/internal/provision/runners"
2221
"gitlab.com/postgres-ai/database-lab/v3/internal/retrieval/engine/postgres/tools"
2322
"gitlab.com/postgres-ai/database-lab/v3/internal/retrieval/engine/postgres/tools/cont"
2423
"gitlab.com/postgres-ai/database-lab/v3/pkg/config/global"
2524
"gitlab.com/postgres-ai/database-lab/v3/pkg/log"
25+
"gitlab.com/postgres-ai/database-lab/v3/pkg/runners"
2626
"gitlab.com/postgres-ai/database-lab/v3/pkg/util/engine"
2727
"gitlab.com/postgres-ai/database-lab/v3/pkg/util/networks"
2828
)

internal/provision/databases/postgres/postgres.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ import (
1818
"gitlab.com/postgres-ai/database-lab/v3/internal/provision/databases/postgres/pgconfig"
1919
"gitlab.com/postgres-ai/database-lab/v3/internal/provision/docker"
2020
"gitlab.com/postgres-ai/database-lab/v3/internal/provision/resources"
21-
"gitlab.com/postgres-ai/database-lab/v3/internal/provision/runners"
2221
"gitlab.com/postgres-ai/database-lab/v3/pkg/log"
22+
"gitlab.com/postgres-ai/database-lab/v3/pkg/runners"
2323
)
2424

2525
const (

internal/provision/databases/postgres/postgres_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"github.com/stretchr/testify/mock"
1010

1111
"gitlab.com/postgres-ai/database-lab/v3/internal/provision/resources"
12-
"gitlab.com/postgres-ai/database-lab/v3/internal/provision/runners"
12+
"gitlab.com/postgres-ai/database-lab/v3/pkg/runners"
1313
)
1414

1515
type MockRunner struct {

internal/provision/docker/docker.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ import (
2020
"github.com/shirou/gopsutil/host"
2121

2222
"gitlab.com/postgres-ai/database-lab/v3/internal/provision/resources"
23-
"gitlab.com/postgres-ai/database-lab/v3/internal/provision/runners"
2423
"gitlab.com/postgres-ai/database-lab/v3/internal/retrieval/engine/postgres/tools"
24+
"gitlab.com/postgres-ai/database-lab/v3/pkg/runners"
2525
)
2626

2727
const (

internal/provision/mode_local.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ import (
2626
"gitlab.com/postgres-ai/database-lab/v3/internal/provision/docker"
2727
"gitlab.com/postgres-ai/database-lab/v3/internal/provision/pool"
2828
"gitlab.com/postgres-ai/database-lab/v3/internal/provision/resources"
29-
"gitlab.com/postgres-ai/database-lab/v3/internal/provision/runners"
3029
"gitlab.com/postgres-ai/database-lab/v3/internal/provision/thinclones/zfs"
3130
"gitlab.com/postgres-ai/database-lab/v3/internal/retrieval/engine/postgres/tools"
3231
"gitlab.com/postgres-ai/database-lab/v3/pkg/log"
3332
"gitlab.com/postgres-ai/database-lab/v3/pkg/models"
33+
"gitlab.com/postgres-ai/database-lab/v3/pkg/runners"
3434
"gitlab.com/postgres-ai/database-lab/v3/pkg/util"
3535
"gitlab.com/postgres-ai/database-lab/v3/pkg/util/networks"
3636
"gitlab.com/postgres-ai/database-lab/v3/pkg/util/pglog"

internal/provision/pool/manager.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ import (
1212
"github.com/pkg/errors"
1313

1414
"gitlab.com/postgres-ai/database-lab/v3/internal/provision/resources"
15-
"gitlab.com/postgres-ai/database-lab/v3/internal/provision/runners"
1615
"gitlab.com/postgres-ai/database-lab/v3/internal/provision/thinclones/lvm"
1716
"gitlab.com/postgres-ai/database-lab/v3/internal/provision/thinclones/zfs"
1817
"gitlab.com/postgres-ai/database-lab/v3/pkg/log"
1918
"gitlab.com/postgres-ai/database-lab/v3/pkg/models"
19+
"gitlab.com/postgres-ai/database-lab/v3/pkg/runners"
2020
)
2121

2222
// FSManager defines an interface to work different thin-clone managers.

internal/provision/pool/pool_manager.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ import (
1515
"github.com/pkg/errors"
1616

1717
"gitlab.com/postgres-ai/database-lab/v3/internal/provision/resources"
18-
"gitlab.com/postgres-ai/database-lab/v3/internal/provision/runners"
1918
"gitlab.com/postgres-ai/database-lab/v3/internal/provision/thinclones/lvm"
2019
"gitlab.com/postgres-ai/database-lab/v3/internal/provision/thinclones/zfs"
2120
"gitlab.com/postgres-ai/database-lab/v3/internal/retrieval/dbmarker"
2221
"gitlab.com/postgres-ai/database-lab/v3/internal/retrieval/engine/postgres/tools"
2322
"gitlab.com/postgres-ai/database-lab/v3/internal/telemetry"
2423
"gitlab.com/postgres-ai/database-lab/v3/pkg/log"
24+
"gitlab.com/postgres-ai/database-lab/v3/pkg/runners"
2525
)
2626

2727
const (

internal/provision/thinclones/lvm/lvm.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import (
1212

1313
"github.com/pkg/errors"
1414

15-
"gitlab.com/postgres-ai/database-lab/v3/internal/provision/runners"
1615
"gitlab.com/postgres-ai/database-lab/v3/pkg/log"
16+
"gitlab.com/postgres-ai/database-lab/v3/pkg/runners"
1717
)
1818

1919
const (

internal/provision/thinclones/lvm/lvmanager.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ import (
1111
"github.com/pkg/errors"
1212

1313
"gitlab.com/postgres-ai/database-lab/v3/internal/provision/resources"
14-
"gitlab.com/postgres-ai/database-lab/v3/internal/provision/runners"
1514
"gitlab.com/postgres-ai/database-lab/v3/pkg/log"
1615
"gitlab.com/postgres-ai/database-lab/v3/pkg/models"
16+
"gitlab.com/postgres-ai/database-lab/v3/pkg/runners"
1717
)
1818

1919
const (

internal/provision/thinclones/zfs/zfs.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ import (
1616
"github.com/pkg/errors"
1717

1818
"gitlab.com/postgres-ai/database-lab/v3/internal/provision/resources"
19-
"gitlab.com/postgres-ai/database-lab/v3/internal/provision/runners"
2019
"gitlab.com/postgres-ai/database-lab/v3/internal/provision/thinclones"
2120
"gitlab.com/postgres-ai/database-lab/v3/pkg/log"
2221
"gitlab.com/postgres-ai/database-lab/v3/pkg/models"
22+
"gitlab.com/postgres-ai/database-lab/v3/pkg/runners"
2323
"gitlab.com/postgres-ai/database-lab/v3/pkg/util"
2424
)
2525

internal/retrieval/engine/postgres/snapshot/snapshot.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ package snapshot
88
import (
99
"github.com/pkg/errors"
1010

11-
"gitlab.com/postgres-ai/database-lab/v3/internal/provision/runners"
1211
"gitlab.com/postgres-ai/database-lab/v3/internal/retrieval/dbmarker"
1312
"gitlab.com/postgres-ai/database-lab/v3/pkg/log"
13+
"gitlab.com/postgres-ai/database-lab/v3/pkg/runners"
1414
)
1515

1616
func extractDataStateAt(dbMarker *dbmarker.Marker) string {

internal/retrieval/retrieval.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import (
2121

2222
"gitlab.com/postgres-ai/database-lab/v3/internal/provision/pool"
2323
"gitlab.com/postgres-ai/database-lab/v3/internal/provision/resources"
24-
"gitlab.com/postgres-ai/database-lab/v3/internal/provision/runners"
2524
"gitlab.com/postgres-ai/database-lab/v3/internal/provision/thinclones/zfs"
2625
"gitlab.com/postgres-ai/database-lab/v3/internal/retrieval/components"
2726
"gitlab.com/postgres-ai/database-lab/v3/internal/retrieval/config"
@@ -32,6 +31,7 @@ import (
3231
"gitlab.com/postgres-ai/database-lab/v3/internal/retrieval/engine/postgres/snapshot"
3332
"gitlab.com/postgres-ai/database-lab/v3/internal/retrieval/engine/postgres/tools/cont"
3433
"gitlab.com/postgres-ai/database-lab/v3/internal/telemetry"
34+
"gitlab.com/postgres-ai/database-lab/v3/pkg/runners"
3535

3636
dblabCfg "gitlab.com/postgres-ai/database-lab/v3/pkg/config"
3737
"gitlab.com/postgres-ai/database-lab/v3/pkg/config/global"
File renamed without changes.

0 commit comments

Comments
 (0)