mirror of
https://github.com/docker/compose.git
synced 2026-08-27 03:45:29 +00:00
Move compose v2 implementation under pkg/compose with dependencies
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
e2ea24ceb7
commit
49e7f2d45d
93 changed files with 261 additions and 331 deletions
|
|
@ -23,6 +23,7 @@ import (
|
|||
|
||||
"github.com/docker/compose-cli/cli/metrics"
|
||||
"github.com/docker/compose-cli/cli/server/proxy"
|
||||
"github.com/docker/compose-cli/pkg/compose"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
@ -60,16 +61,16 @@ func metricsServerInterceptor(client metrics.Client) grpc.UnaryServerInterceptor
|
|||
|
||||
data, err := handler(ctx, req)
|
||||
|
||||
status := metrics.SuccessStatus
|
||||
status := compose.SuccessStatus
|
||||
if err != nil {
|
||||
status = metrics.FailureStatus
|
||||
status = compose.FailureStatus
|
||||
}
|
||||
command := methodMapping[info.FullMethod]
|
||||
if command != "" {
|
||||
client.Send(metrics.Command{
|
||||
Command: command,
|
||||
Context: contextType,
|
||||
Source: metrics.APISource,
|
||||
Source: compose.APISource,
|
||||
Status: status,
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue