pulumi/sdk/javascript/arch.ts
joeduffy e731229901 Make the Mu library a Node package; get it compiling
This change morphs the Mu library into a Node package and gets it
compiling against the latest AWS library and SDK changes.
2016-12-12 17:56:13 -08:00

22 lines
1 KiB
TypeScript

// Copyright 2016 Marapongo, Inc. All rights reserved.
// An architecture is a combination of cloud plus optionally a scheduler that we're targeting.
export interface Arch {
cloud: Cloud;
scheduler: Scheduler;
}
// The cloud operating system to target.
// TODO: As soon as this PR is merged, https://github.com/Microsoft/TypeScript/pull/10676, I believe we can replace
// these with references to the above Clouds literals (e.g., `typeof clouds.AWS`, etc). For now, duplicate.
export type Cloud = "aws" | "gcp" | "azure" | "vmware";
// The container scheduler and runtime to target.
// TODO: As soon as this PR is merged, https://github.com/Microsoft/TypeScript/pull/10676, I believe we can replace
// these with references to the above Clouds literals (e.g., `typeof schedulers.Swarm`, etc). For now, duplicate.
export type Scheduler =
undefined | // no scheduler, just use VMs.
"swarm" | "kubernetes" | "mesos" | // cloud-neutral schedulers.
"ecs" | "gke" | "acs"; // cloud-specific schedulers.