Initial provider implementation (#18)
This brings over the initial buildx prototype from pulumi/pulumi-docker and fixes various build and release issues.
This commit is contained in:
37
sdk/nodejs/index.ts
generated
37
sdk/nodejs/index.ts
generated
@@ -5,33 +5,52 @@ import * as pulumi from "@pulumi/pulumi";
|
||||
import * as utilities from "./utilities";
|
||||
|
||||
// Export members:
|
||||
export { ImageArgs } from "./image";
|
||||
export type Image = import("./image").Image;
|
||||
export const Image: typeof import("./image").Image = null as any;
|
||||
utilities.lazyLoad(exports, ["Image"], () => require("./image"));
|
||||
|
||||
export { IndexArgs } from "./index_";
|
||||
export type Index = import("./index_").Index;
|
||||
export const Index: typeof import("./index_").Index = null as any;
|
||||
utilities.lazyLoad(exports, ["Index"], () => require("./index_"));
|
||||
|
||||
export { ProviderArgs } from "./provider";
|
||||
export type Provider = import("./provider").Provider;
|
||||
export const Provider: typeof import("./provider").Provider = null as any;
|
||||
utilities.lazyLoad(exports, ["Provider"], () => require("./provider"));
|
||||
|
||||
export { RandomArgs } from "./random";
|
||||
export type Random = import("./random").Random;
|
||||
export const Random: typeof import("./random").Random = null as any;
|
||||
utilities.lazyLoad(exports, ["Random"], () => require("./random"));
|
||||
|
||||
// Export enums:
|
||||
export * from "./types/enums";
|
||||
|
||||
// Export sub-modules:
|
||||
import * as config from "./config";
|
||||
import * as types from "./types";
|
||||
|
||||
export {
|
||||
config,
|
||||
types,
|
||||
};
|
||||
|
||||
const _module = {
|
||||
version: utilities.getVersion(),
|
||||
construct: (name: string, type: string, urn: string): pulumi.Resource => {
|
||||
switch (type) {
|
||||
case "dockerbuild:index:Random":
|
||||
return new Random(name, <any>undefined, { urn })
|
||||
case "docker-build:index:Image":
|
||||
return new Image(name, <any>undefined, { urn })
|
||||
case "docker-build:index:Index":
|
||||
return new Index(name, <any>undefined, { urn })
|
||||
default:
|
||||
throw new Error(`unknown resource type ${type}`);
|
||||
}
|
||||
},
|
||||
};
|
||||
pulumi.runtime.registerResourceModule("dockerbuild", "index", _module)
|
||||
pulumi.runtime.registerResourcePackage("dockerbuild", {
|
||||
pulumi.runtime.registerResourceModule("docker-build", "index", _module)
|
||||
pulumi.runtime.registerResourcePackage("docker-build", {
|
||||
version: utilities.getVersion(),
|
||||
constructProvider: (name: string, type: string, urn: string): pulumi.ProviderResource => {
|
||||
if (type !== "pulumi:providers:dockerbuild") {
|
||||
if (type !== "pulumi:providers:docker-build") {
|
||||
throw new Error(`unknown provider type ${type}`);
|
||||
}
|
||||
return new Provider(name, <any>undefined, { urn });
|
||||
|
||||
Reference in New Issue
Block a user