Move config => api/config

Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
This commit is contained in:
Guillaume Tardif 2021-01-15 16:55:10 +01:00
parent f1ac6d4fdc
commit 2a8c24e4ff
14 changed files with 11 additions and 11 deletions

View File

@ -22,8 +22,8 @@ import (
"github.com/spf13/cobra"
"github.com/docker/compose-cli/api/config"
"github.com/docker/compose-cli/api/context/store"
"github.com/docker/compose-cli/config"
)
func useCommand() *cobra.Command {

View File

@ -22,7 +22,7 @@ import (
"github.com/spf13/pflag"
"github.com/docker/compose-cli/config"
"github.com/docker/compose-cli/api/config"
)
// ConfigFlags are the global CLI flags

View File

@ -32,6 +32,7 @@ import (
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"
"github.com/docker/compose-cli/api/config"
apicontext "github.com/docker/compose-cli/api/context"
"github.com/docker/compose-cli/api/context/store"
"github.com/docker/compose-cli/api/errdefs"
@ -45,7 +46,6 @@ import (
"github.com/docker/compose-cli/cli/metrics"
"github.com/docker/compose-cli/cli/mobycli"
cliopts "github.com/docker/compose-cli/cli/options"
"github.com/docker/compose-cli/config"
// Backend registrations
_ "github.com/docker/compose-cli/aci"

View File

@ -24,11 +24,11 @@ import (
"gotest.tools/v3/assert"
"github.com/docker/compose-cli/api/config"
"github.com/docker/compose-cli/cli/cmd"
"github.com/docker/compose-cli/cli/cmd/context"
"github.com/docker/compose-cli/cli/cmd/login"
"github.com/docker/compose-cli/cli/cmd/run"
"github.com/docker/compose-cli/config"
)
var contextSetConfig = []byte(`{

View File

@ -25,10 +25,10 @@ import (
"google.golang.org/grpc/metadata"
"github.com/docker/compose-cli/api/client"
"github.com/docker/compose-cli/api/config"
apicontext "github.com/docker/compose-cli/api/context"
"github.com/docker/compose-cli/api/context/store"
"github.com/docker/compose-cli/cli/server/proxy"
"github.com/docker/compose-cli/config"
)
// key is the key where the current docker context is stored in the metadata

View File

@ -28,8 +28,8 @@ import (
"gotest.tools/v3/assert"
"gotest.tools/v3/assert/cmp"
"github.com/docker/compose-cli/api/config"
apicontext "github.com/docker/compose-cli/api/context"
"github.com/docker/compose-cli/config"
)
func testContext(t *testing.T) context.Context {

View File

@ -19,9 +19,9 @@ package proxy
import (
"context"
"github.com/docker/compose-cli/api/config"
"github.com/docker/compose-cli/api/context/store"
contextsv1 "github.com/docker/compose-cli/cli/server/protos/contexts/v1"
"github.com/docker/compose-cli/config"
)
type contextsProxy struct {

View File

@ -21,13 +21,13 @@ import (
"sync"
"github.com/docker/compose-cli/api/client"
"github.com/docker/compose-cli/api/config"
composev1 "github.com/docker/compose-cli/cli/server/protos/compose/v1"
containersv1 "github.com/docker/compose-cli/cli/server/protos/containers/v1"
contextsv1 "github.com/docker/compose-cli/cli/server/protos/contexts/v1"
streamsv1 "github.com/docker/compose-cli/cli/server/protos/streams/v1"
volumesv1 "github.com/docker/compose-cli/cli/server/protos/volumes/v1"
"github.com/docker/compose-cli/cli/server/proxy/streams"
"github.com/docker/compose-cli/config"
)
type clientKey struct{}

View File

@ -24,7 +24,7 @@ import (
"strings"
"github.com/docker/compose-cli/api/compose"
"github.com/docker/compose-cli/config"
"github.com/docker/compose-cli/api/config"
ecsapi "github.com/aws/aws-sdk-go/service/ecs"
"github.com/aws/aws-sdk-go/service/elbv2"

View File

@ -32,8 +32,8 @@ import (
"github.com/docker/docker/registry"
"golang.org/x/sync/errgroup"
"github.com/docker/compose-cli/api/config"
"github.com/docker/compose-cli/api/progress"
"github.com/docker/compose-cli/config"
)
func (s *composeService) Pull(ctx context.Context, project *types.Project) error {

View File

@ -25,8 +25,8 @@ import (
"github.com/docker/buildx/driver"
"github.com/docker/compose-cli/api/config"
"github.com/docker/compose-cli/api/progress"
"github.com/docker/compose-cli/config"
"github.com/compose-spec/compose-go/types"
cliconfig "github.com/docker/cli/cli/config"