internal: move components into their own package

This commit is contained in:
Leonard Cohnen 2023-01-06 12:04:36 +01:00 committed by 3u13r
parent 433e9cdd8b
commit 3637909a46
18 changed files with 156 additions and 135 deletions

View file

@ -11,7 +11,7 @@ import (
"fmt"
"testing"
"github.com/edgelesssys/constellation/v2/internal/versions"
"github.com/edgelesssys/constellation/v2/internal/versions/components"
"github.com/edgelesssys/constellation/v2/upgrade-agent/upgradeproto"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
@ -100,6 +100,6 @@ type stubOsInstaller struct {
InstallErr error
}
func (s stubOsInstaller) Install(ctx context.Context, kubernetesComponent versions.ComponentVersion) error {
func (s stubOsInstaller) Install(ctx context.Context, kubernetesComponent components.Component) error {
return s.InstallErr
}