mirror of
https://github.com/docker/compose.git
synced 2026-08-04 14:47:40 +00:00
rename packages ( amazon to ecs and azure to aci )
Signed-off-by: aiordache <anca.iordache@docker.com>
This commit is contained in:
parent
2471e51b39
commit
87245ef727
40 changed files with 110 additions and 38 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue