UNPKG

@pulumi/docker

Version:

A Pulumi package for interacting with Docker in Pulumi programs

78 lines 4.4 kB
"use strict"; // *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.BuildxBuilder = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Manages a Docker Buildx builder instance. This resource allows you to create a buildx builder with various configurations such as driver, nodes, and platform settings. Please see https://github.com/docker/buildx/blob/master/docs/reference/buildx_create.md for more documentation */ class BuildxBuilder extends pulumi.CustomResource { /** * Get an existing BuildxBuilder resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name, id, state, opts) { return new BuildxBuilder(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of BuildxBuilder. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj) { if (obj === undefined || obj === null) { return false; } return obj['__pulumiType'] === BuildxBuilder.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["append"] = state ? state.append : undefined; resourceInputs["bootstrap"] = state ? state.bootstrap : undefined; resourceInputs["buildkitConfig"] = state ? state.buildkitConfig : undefined; resourceInputs["buildkitFlags"] = state ? state.buildkitFlags : undefined; resourceInputs["dockerContainer"] = state ? state.dockerContainer : undefined; resourceInputs["driver"] = state ? state.driver : undefined; resourceInputs["driverOptions"] = state ? state.driverOptions : undefined; resourceInputs["endpoint"] = state ? state.endpoint : undefined; resourceInputs["kubernetes"] = state ? state.kubernetes : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["node"] = state ? state.node : undefined; resourceInputs["platforms"] = state ? state.platforms : undefined; resourceInputs["remote"] = state ? state.remote : undefined; resourceInputs["use"] = state ? state.use : undefined; } else { const args = argsOrState; resourceInputs["append"] = args ? args.append : undefined; resourceInputs["bootstrap"] = args ? args.bootstrap : undefined; resourceInputs["buildkitConfig"] = args ? args.buildkitConfig : undefined; resourceInputs["buildkitFlags"] = args ? args.buildkitFlags : undefined; resourceInputs["dockerContainer"] = args ? args.dockerContainer : undefined; resourceInputs["driver"] = args ? args.driver : undefined; resourceInputs["driverOptions"] = args ? args.driverOptions : undefined; resourceInputs["endpoint"] = args ? args.endpoint : undefined; resourceInputs["kubernetes"] = args ? args.kubernetes : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["node"] = args ? args.node : undefined; resourceInputs["platforms"] = args ? args.platforms : undefined; resourceInputs["remote"] = args ? args.remote : undefined; resourceInputs["use"] = args ? args.use : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(BuildxBuilder.__pulumiType, name, resourceInputs, opts); } } exports.BuildxBuilder = BuildxBuilder; /** @internal */ BuildxBuilder.__pulumiType = 'docker:index/buildxBuilder:BuildxBuilder'; //# sourceMappingURL=buildxBuilder.js.map