mirror of
https://github.com/docker/compose.git
synced 2026-08-28 12:23:49 +00:00
Add compose service, run compose up through API
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
This commit is contained in:
parent
0ae42dea04
commit
5abc68ebdd
3 changed files with 66 additions and 0 deletions
|
|
@ -22,6 +22,7 @@ import (
|
|||
|
||||
"github.com/docker/compose-cli/api/client"
|
||||
"github.com/docker/compose-cli/config"
|
||||
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"
|
||||
|
|
@ -45,6 +46,7 @@ func Client(ctx context.Context) *client.Client {
|
|||
// Proxy implements the gRPC server and forwards the actions
|
||||
// to the right backend
|
||||
type Proxy interface {
|
||||
composev1.ComposeServer
|
||||
containersv1.ContainersServer
|
||||
streamsv1.StreamingServer
|
||||
volumesv1.VolumesServer
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue