Merge pull request #912 from docker/compose-api

Compose api
This commit is contained in:
Guillaume Tardif 2020-11-17 09:51:13 +01:00 committed by GitHub
commit bc966daf34
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 780 additions and 21 deletions

View file

@ -23,6 +23,7 @@ import (
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"
composev1 "github.com/docker/compose-cli/protos/compose/v1"
containersv1 "github.com/docker/compose-cli/protos/containers/v1"
contextsv1 "github.com/docker/compose-cli/protos/contexts/v1"
streamsv1 "github.com/docker/compose-cli/protos/streams/v1"
@ -64,6 +65,7 @@ func runServe(ctx context.Context, opts serveOpts) error {
p := proxy.New(ctx)
composev1.RegisterComposeServer(s, p)
containersv1.RegisterContainersServer(s, p)
contextsv1.RegisterContextsServer(s, p.ContextsProxy())
streamsv1.RegisterStreamingServer(s, p)