Rename to docker-build

This commit is contained in:
Bryce Lampe
2024-04-15 14:51:07 -07:00
parent 4cd6d49ba9
commit 12bf5dd689
139 changed files with 638 additions and 645 deletions

View File

@@ -8,7 +8,7 @@ import * as enums from "../types/enums";
import * as utilities from "../utilities";
declare var exports: any;
const __config = new pulumi.Config("dockerbuild");
const __config = new pulumi.Config("docker-build");
/**
* The build daemon's address.

2
sdk/nodejs/image.ts generated
View File

@@ -477,7 +477,7 @@ export class Image extends pulumi.CustomResource {
}
/** @internal */
public static readonly __pulumiType = 'dockerbuild:index:Image';
public static readonly __pulumiType = 'docker-build:index:Image';
/**
* Returns true if the given object is an instance of Image. This is designed to work even

10
sdk/nodejs/index.ts generated
View File

@@ -37,20 +37,20 @@ const _module = {
version: utilities.getVersion(),
construct: (name: string, type: string, urn: string): pulumi.Resource => {
switch (type) {
case "dockerbuild:index:Image":
case "docker-build:index:Image":
return new Image(name, <any>undefined, { urn })
case "dockerbuild:index:Index":
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 });

18
sdk/nodejs/index_.ts generated
View File

@@ -21,9 +21,9 @@ import * as utilities from "./utilities";
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as dockerbuild from "@pulumi/dockerbuild";
* import * as docker_build from "@pulumi/docker-build";
*
* const amd64 = new dockerbuild.Image("amd64", {
* const amd64 = new docker_build.Image("amd64", {
* cacheFrom: [{
* registry: {
* ref: "docker.io/pulumi/pulumi:cache-amd64",
@@ -31,17 +31,17 @@ import * as utilities from "./utilities";
* }],
* cacheTo: [{
* registry: {
* mode: dockerbuild.CacheMode.Max,
* mode: docker_build.CacheMode.Max,
* ref: "docker.io/pulumi/pulumi:cache-amd64",
* },
* }],
* context: {
* location: "app",
* },
* platforms: [dockerbuild.Platform.Linux_amd64],
* platforms: [docker_build.Platform.Linux_amd64],
* tags: ["docker.io/pulumi/pulumi:3.107.0-amd64"],
* });
* const arm64 = new dockerbuild.Image("arm64", {
* const arm64 = new docker_build.Image("arm64", {
* cacheFrom: [{
* registry: {
* ref: "docker.io/pulumi/pulumi:cache-arm64",
@@ -49,17 +49,17 @@ import * as utilities from "./utilities";
* }],
* cacheTo: [{
* registry: {
* mode: dockerbuild.CacheMode.Max,
* mode: docker_build.CacheMode.Max,
* ref: "docker.io/pulumi/pulumi:cache-arm64",
* },
* }],
* context: {
* location: "app",
* },
* platforms: [dockerbuild.Platform.Linux_arm64],
* platforms: [docker_build.Platform.Linux_arm64],
* tags: ["docker.io/pulumi/pulumi:3.107.0-arm64"],
* });
* const index = new dockerbuild.Index("index", {
* const index = new docker_build.Index("index", {
* sources: [
* amd64.ref,
* arm64.ref,
@@ -83,7 +83,7 @@ export class Index extends pulumi.CustomResource {
}
/** @internal */
public static readonly __pulumiType = 'dockerbuild:index:Index';
public static readonly __pulumiType = 'docker-build:index:Index';
/**
* Returns true if the given object is an instance of Index. This is designed to work even

View File

@@ -1,5 +1,5 @@
{
"name": "@pulumi/dockerbuild",
"name": "@pulumi/docker-build",
"version": "${VERSION}",
"keywords": [
"docker",
@@ -7,7 +7,7 @@
"buildx"
],
"homepage": "https://pulumi.io",
"repository": "https://github.com/pulumi/pulumi-dockerbuild",
"repository": "https://github.com/pulumi/pulumi-docker-build",
"license": "Apache-2.0",
"scripts": {
"build": "tsc"
@@ -21,7 +21,7 @@
},
"pulumi": {
"resource": true,
"name": "dockerbuild",
"server": "github.com/pulumi/pulumi-dockerbuild"
"name": "docker-build",
"server": "github.com/pulumi/pulumi-docker-build"
}
}

View File

@@ -9,7 +9,7 @@ import * as utilities from "./utilities";
export class Provider extends pulumi.ProviderResource {
/** @internal */
public static readonly __pulumiType = 'dockerbuild';
public static readonly __pulumiType = 'docker-build';
/**
* Returns true if the given object is an instance of Provider. This is designed to work even

View File

@@ -53,7 +53,7 @@ export function getVersion(): string {
/** @internal */
export function resourceOptsDefaults(): any {
return { version: getVersion(), pluginDownloadURL: "github.com/pulumi/pulumi-dockerbuild" };
return { version: getVersion(), pluginDownloadURL: "github.com/pulumi/pulumi-docker-build" };
}
/** @internal */