rename packages ( amazon to ecs and azure to aci )

Signed-off-by: aiordache <anca.iordache@docker.com>
This commit is contained in:
aiordache 2020-07-29 15:12:45 +02:00
parent 2471e51b39
commit 87245ef727
40 changed files with 110 additions and 38 deletions

View file

@ -29,6 +29,8 @@ import (
"github.com/docker/api/context/store"
)
var delegatedContextTypes = []string{store.DefaultContextType}
// ComDockerCli name of the classic cli binary
const ComDockerCli = "com.docker.cli"
@ -46,7 +48,12 @@ func ExecIfDefaultCtxType(ctx context.Context) {
}
func mustDelegateToMoby(ctxType string) bool {
return ctxType == store.DefaultContextType
for _, ctype := range delegatedContextTypes {
if ctxType == ctype {
return true
}
}
return false
}
// Exec delegates to com.docker.cli if on moby context