From dc466dcf888febee4a99b93d5b8ab627812a2722 Mon Sep 17 00:00:00 2001 From: Akihiro Suda Date: Wed, 15 Jul 2026 02:29:34 +0900 Subject: [PATCH] move internal/computecore out of internal Part of issue 2823 Signed-off-by: Akihiro Suda --- internal/hcs/v2/migration.go | 2 +- internal/hcs/v2/migration_test.go | 2 +- internal/hcs/v2/notification.go | 2 +- internal/hcs/v2/operation.go | 2 +- internal/hcs/v2/process.go | 2 +- internal/hcs/v2/service.go | 2 +- internal/hcs/v2/system.go | 2 +- {internal => pkg}/computecore/computecore.go | 0 {internal => pkg}/computecore/doc.go | 0 {internal => pkg}/computecore/types.go | 0 {internal => pkg}/computecore/zsyscall_windows.go | 0 11 files changed, 7 insertions(+), 7 deletions(-) rename {internal => pkg}/computecore/computecore.go (100%) rename {internal => pkg}/computecore/doc.go (100%) rename {internal => pkg}/computecore/types.go (100%) rename {internal => pkg}/computecore/zsyscall_windows.go (100%) diff --git a/internal/hcs/v2/migration.go b/internal/hcs/v2/migration.go index 712f074539..d9efd1074f 100644 --- a/internal/hcs/v2/migration.go +++ b/internal/hcs/v2/migration.go @@ -9,10 +9,10 @@ import ( "syscall" "time" - "github.com/Microsoft/hcsshim/internal/computecore" "github.com/Microsoft/hcsshim/internal/hcs/resourcepaths" hcsschema "github.com/Microsoft/hcsshim/internal/hcs/schema2" "github.com/Microsoft/hcsshim/internal/oc" + "github.com/Microsoft/hcsshim/pkg/computecore" "go.opencensus.io/trace" ) diff --git a/internal/hcs/v2/migration_test.go b/internal/hcs/v2/migration_test.go index 4dbb2c855b..a0e6b90944 100644 --- a/internal/hcs/v2/migration_test.go +++ b/internal/hcs/v2/migration_test.go @@ -9,8 +9,8 @@ import ( "time" "unsafe" - "github.com/Microsoft/hcsshim/internal/computecore" hcsschema "github.com/Microsoft/hcsshim/internal/hcs/schema2" + "github.com/Microsoft/hcsshim/pkg/computecore" "golang.org/x/sys/windows" ) diff --git a/internal/hcs/v2/notification.go b/internal/hcs/v2/notification.go index 22a687cf28..0330da27a8 100644 --- a/internal/hcs/v2/notification.go +++ b/internal/hcs/v2/notification.go @@ -12,9 +12,9 @@ import ( "github.com/sirupsen/logrus" "golang.org/x/sys/windows" - "github.com/Microsoft/hcsshim/internal/computecore" hcsschema "github.com/Microsoft/hcsshim/internal/hcs/schema2" "github.com/Microsoft/hcsshim/internal/logfields" + "github.com/Microsoft/hcsshim/pkg/computecore" ) // migrationNotificationBufferSize is the capacity of a System's live migration diff --git a/internal/hcs/v2/operation.go b/internal/hcs/v2/operation.go index 65e336dd55..3ebc2db2f8 100644 --- a/internal/hcs/v2/operation.go +++ b/internal/hcs/v2/operation.go @@ -8,7 +8,7 @@ import ( "syscall" "time" - "github.com/Microsoft/hcsshim/internal/computecore" + "github.com/Microsoft/hcsshim/pkg/computecore" ) // infiniteTimeout is the milliseconds value passed to diff --git a/internal/hcs/v2/process.go b/internal/hcs/v2/process.go index dc975b5f55..f24edba443 100644 --- a/internal/hcs/v2/process.go +++ b/internal/hcs/v2/process.go @@ -14,12 +14,12 @@ import ( "go.opencensus.io/trace" - "github.com/Microsoft/hcsshim/internal/computecore" "github.com/Microsoft/hcsshim/internal/cow" hcsschema "github.com/Microsoft/hcsshim/internal/hcs/schema2" "github.com/Microsoft/hcsshim/internal/log" "github.com/Microsoft/hcsshim/internal/oc" "github.com/Microsoft/hcsshim/internal/protocol/guestrequest" + "github.com/Microsoft/hcsshim/pkg/computecore" ) type Process struct { diff --git a/internal/hcs/v2/service.go b/internal/hcs/v2/service.go index a0133b7c76..14e75446a7 100644 --- a/internal/hcs/v2/service.go +++ b/internal/hcs/v2/service.go @@ -6,8 +6,8 @@ import ( "context" "encoding/json" - "github.com/Microsoft/hcsshim/internal/computecore" hcsschema "github.com/Microsoft/hcsshim/internal/hcs/schema2" + "github.com/Microsoft/hcsshim/pkg/computecore" ) // GetServiceProperties returns properties of the host compute service. diff --git a/internal/hcs/v2/system.go b/internal/hcs/v2/system.go index aeb03d7fcc..de6dc9b9aa 100644 --- a/internal/hcs/v2/system.go +++ b/internal/hcs/v2/system.go @@ -12,7 +12,6 @@ import ( "syscall" "time" - "github.com/Microsoft/hcsshim/internal/computecore" "github.com/Microsoft/hcsshim/internal/cow" "github.com/Microsoft/hcsshim/internal/hcs/schema1" hcsschema "github.com/Microsoft/hcsshim/internal/hcs/schema2" @@ -21,6 +20,7 @@ import ( "github.com/Microsoft/hcsshim/internal/logfields" "github.com/Microsoft/hcsshim/internal/oc" "github.com/Microsoft/hcsshim/internal/timeout" + "github.com/Microsoft/hcsshim/pkg/computecore" "github.com/sirupsen/logrus" "go.opencensus.io/trace" ) diff --git a/internal/computecore/computecore.go b/pkg/computecore/computecore.go similarity index 100% rename from internal/computecore/computecore.go rename to pkg/computecore/computecore.go diff --git a/internal/computecore/doc.go b/pkg/computecore/doc.go similarity index 100% rename from internal/computecore/doc.go rename to pkg/computecore/doc.go diff --git a/internal/computecore/types.go b/pkg/computecore/types.go similarity index 100% rename from internal/computecore/types.go rename to pkg/computecore/types.go diff --git a/internal/computecore/zsyscall_windows.go b/pkg/computecore/zsyscall_windows.go similarity index 100% rename from internal/computecore/zsyscall_windows.go rename to pkg/computecore/zsyscall_windows.go