WIP: Move public objects to the pkg dir
This commit is contained in:
parent
6b4b170be1
commit
6a7e541b82
@ -4,9 +4,6 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
|
||||||
"git.badhouseplants.net/allanger/shoebill/internal/config"
|
|
||||||
"git.badhouseplants.net/allanger/shoebill/internal/config/release"
|
|
||||||
"git.badhouseplants.net/allanger/shoebill/internal/lockfile"
|
|
||||||
"git.badhouseplants.net/allanger/shoebill/internal/providers"
|
"git.badhouseplants.net/allanger/shoebill/internal/providers"
|
||||||
"git.badhouseplants.net/allanger/shoebill/internal/utils/diff"
|
"git.badhouseplants.net/allanger/shoebill/internal/utils/diff"
|
||||||
"git.badhouseplants.net/allanger/shoebill/internal/utils/githelper"
|
"git.badhouseplants.net/allanger/shoebill/internal/utils/githelper"
|
||||||
@ -14,6 +11,9 @@ import (
|
|||||||
"git.badhouseplants.net/allanger/shoebill/internal/utils/kustomize"
|
"git.badhouseplants.net/allanger/shoebill/internal/utils/kustomize"
|
||||||
"git.badhouseplants.net/allanger/shoebill/internal/utils/sopshelper"
|
"git.badhouseplants.net/allanger/shoebill/internal/utils/sopshelper"
|
||||||
"git.badhouseplants.net/allanger/shoebill/internal/utils/workdir"
|
"git.badhouseplants.net/allanger/shoebill/internal/utils/workdir"
|
||||||
|
"git.badhouseplants.net/allanger/shoebill/pkg/config"
|
||||||
|
"git.badhouseplants.net/allanger/shoebill/pkg/lockfile"
|
||||||
|
"git.badhouseplants.net/allanger/shoebill/pkg/release"
|
||||||
)
|
)
|
||||||
|
|
||||||
func ReadTheConfig(path string) (*config.Config, error) {
|
func ReadTheConfig(path string) (*config.Config, error) {
|
||||||
|
@ -8,13 +8,12 @@ import (
|
|||||||
"os/exec"
|
"os/exec"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
|
||||||
"git.badhouseplants.net/allanger/shoebill/internal/config/release"
|
|
||||||
"git.badhouseplants.net/allanger/shoebill/internal/config/repository"
|
|
||||||
"git.badhouseplants.net/allanger/shoebill/internal/utils/diff"
|
"git.badhouseplants.net/allanger/shoebill/internal/utils/diff"
|
||||||
"git.badhouseplants.net/allanger/shoebill/internal/utils/githelper"
|
"git.badhouseplants.net/allanger/shoebill/internal/utils/githelper"
|
||||||
|
"git.badhouseplants.net/allanger/shoebill/pkg/release"
|
||||||
|
"git.badhouseplants.net/allanger/shoebill/pkg/repository"
|
||||||
release_v2beta1 "github.com/fluxcd/helm-controller/api/v2beta1"
|
release_v2beta1 "github.com/fluxcd/helm-controller/api/v2beta1"
|
||||||
helmrepo_v1beta2 "github.com/fluxcd/source-controller/api/v1beta2"
|
helmrepo_v1beta2 "github.com/fluxcd/source-controller/api/v1beta2"
|
||||||
"github.com/sirupsen/logrus"
|
|
||||||
corev1 "k8s.io/api/core/v1"
|
corev1 "k8s.io/api/core/v1"
|
||||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
"sigs.k8s.io/yaml"
|
"sigs.k8s.io/yaml"
|
||||||
|
@ -3,9 +3,9 @@ package diff
|
|||||||
import (
|
import (
|
||||||
"reflect"
|
"reflect"
|
||||||
|
|
||||||
"git.badhouseplants.net/allanger/shoebill/internal/config/release"
|
"git.badhouseplants.net/allanger/shoebill/pkg/lockfile"
|
||||||
"git.badhouseplants.net/allanger/shoebill/internal/config/repository"
|
"git.badhouseplants.net/allanger/shoebill/pkg/release"
|
||||||
"git.badhouseplants.net/allanger/shoebill/internal/lockfile"
|
"git.badhouseplants.net/allanger/shoebill/pkg/repository"
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"git.badhouseplants.net/allanger/shoebill/internal/config/repository"
|
"git.badhouseplants.net/allanger/shoebill/pkg/repository"
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
"gopkg.in/yaml.v2"
|
"gopkg.in/yaml.v2"
|
||||||
"helm.sh/helm/v3/pkg/action"
|
"helm.sh/helm/v3/pkg/action"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
package helmhelper
|
package helmhelper
|
||||||
|
|
||||||
import "git.badhouseplants.net/allanger/shoebill/internal/config/repository"
|
import "git.badhouseplants.net/allanger/shoebill/pkg/repository"
|
||||||
|
|
||||||
const MOCK_LATEST_VERSION = "v1.12.1"
|
const MOCK_LATEST_VERSION = "v1.12.1"
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
package helmhelper
|
package helmhelper
|
||||||
|
|
||||||
import "git.badhouseplants.net/allanger/shoebill/internal/config/repository"
|
import "git.badhouseplants.net/allanger/shoebill/pkg/repository"
|
||||||
|
|
||||||
type Helmhelper interface {
|
type Helmhelper interface {
|
||||||
FindLatestVersion(dir, chart string, repository repository.Repository) (string, error)
|
FindLatestVersion(dir, chart string, repository repository.Repository) (string, error)
|
||||||
|
@ -5,9 +5,9 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"git.badhouseplants.net/allanger/shoebill/internal/config/release"
|
|
||||||
"git.badhouseplants.net/allanger/shoebill/internal/lockfile"
|
|
||||||
"git.badhouseplants.net/allanger/shoebill/internal/utils/githelper"
|
"git.badhouseplants.net/allanger/shoebill/internal/utils/githelper"
|
||||||
|
"git.badhouseplants.net/allanger/shoebill/pkg/lockfile"
|
||||||
|
"git.badhouseplants.net/allanger/shoebill/pkg/release"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Cluster struct {
|
type Cluster struct {
|
@ -3,9 +3,9 @@ package config
|
|||||||
import (
|
import (
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"git.badhouseplants.net/allanger/shoebill/internal/config/cluster"
|
"git.badhouseplants.net/allanger/shoebill/pkg/cluster"
|
||||||
"git.badhouseplants.net/allanger/shoebill/internal/config/release"
|
"git.badhouseplants.net/allanger/shoebill/pkg/release"
|
||||||
"git.badhouseplants.net/allanger/shoebill/internal/config/repository"
|
"git.badhouseplants.net/allanger/shoebill/pkg/repository"
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
"gopkg.in/yaml.v2"
|
"gopkg.in/yaml.v2"
|
||||||
)
|
)
|
@ -4,8 +4,8 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"git.badhouseplants.net/allanger/shoebill/internal/config"
|
"git.badhouseplants.net/allanger/shoebill/pkg/config"
|
||||||
"git.badhouseplants.net/allanger/shoebill/internal/config/repository"
|
"git.badhouseplants.net/allanger/shoebill/pkg/repository"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
)
|
)
|
||||||
|
|
@ -4,7 +4,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"git.badhouseplants.net/allanger/shoebill/internal/config/repository"
|
"git.badhouseplants.net/allanger/shoebill/pkg/repository"
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
"gopkg.in/yaml.v2"
|
"gopkg.in/yaml.v2"
|
||||||
)
|
)
|
@ -5,10 +5,10 @@ import (
|
|||||||
"reflect"
|
"reflect"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"git.badhouseplants.net/allanger/shoebill/internal/config/repository"
|
|
||||||
"git.badhouseplants.net/allanger/shoebill/internal/lockfile"
|
|
||||||
"git.badhouseplants.net/allanger/shoebill/internal/utils/helmhelper"
|
"git.badhouseplants.net/allanger/shoebill/internal/utils/helmhelper"
|
||||||
"git.badhouseplants.net/allanger/shoebill/internal/utils/sopshelper"
|
"git.badhouseplants.net/allanger/shoebill/internal/utils/sopshelper"
|
||||||
|
"git.badhouseplants.net/allanger/shoebill/pkg/lockfile"
|
||||||
|
"git.badhouseplants.net/allanger/shoebill/pkg/repository"
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|
@ -4,9 +4,9 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"git.badhouseplants.net/allanger/shoebill/internal/config/release"
|
|
||||||
"git.badhouseplants.net/allanger/shoebill/internal/config/repository"
|
|
||||||
"git.badhouseplants.net/allanger/shoebill/internal/utils/helmhelper"
|
"git.badhouseplants.net/allanger/shoebill/internal/utils/helmhelper"
|
||||||
|
"git.badhouseplants.net/allanger/shoebill/pkg/release"
|
||||||
|
"git.badhouseplants.net/allanger/shoebill/pkg/repository"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"gopkg.in/yaml.v2"
|
"gopkg.in/yaml.v2"
|
||||||
)
|
)
|
@ -4,7 +4,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"git.badhouseplants.net/allanger/shoebill/internal/config/repository"
|
"git.badhouseplants.net/allanger/shoebill/pkg/repository"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user