6f99088e2b
Right now, the AWS ECS scheduler simply passes through to the underlying AWS cloud provider. However, now we have the necessary hooks to start incrementally recognizing stack types and emitting specialized code for them (e.g., starting with mu/container).
23 lines
498 B
Go
23 lines
498 B
Go
// Copyright 2016 Marapongo, Inc. All rights reserved.
|
|
|
|
package backends
|
|
|
|
import (
|
|
"github.com/marapongo/mu/pkg/compiler/backends/clouds"
|
|
"github.com/marapongo/mu/pkg/compiler/backends/schedulers"
|
|
)
|
|
|
|
// Arch is the target cloud "architecture" we are compiling against.
|
|
type Arch struct {
|
|
Cloud clouds.Arch
|
|
Scheduler schedulers.Arch
|
|
}
|
|
|
|
func (a Arch) String() string {
|
|
s := clouds.Names[a.Cloud]
|
|
if a.Scheduler != schedulers.None {
|
|
s += ":" + schedulers.Names[a.Scheduler]
|
|
}
|
|
return s
|
|
}
|