@pulumi/docker
Version:
A Pulumi package for interacting with Docker in Pulumi programs
76 lines • 2.68 kB
JavaScript
// *** 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.getRemoteImageOutput = exports.getRemoteImage = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* `docker.RemoteImage` provides details about a specific Docker Image which needs to be present on the Docker Host
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as docker from "@pulumi/docker";
*
* // uses the 'latest' tag
* const latest = docker.getRemoteImage({
* name: "nginx",
* });
* // uses a specific tag
* const specific = docker.getRemoteImage({
* name: "nginx:1.17.6",
* });
* // use the image digest
* const digest = docker.getRemoteImage({
* name: "nginx@sha256:36b74457bccb56fbf8b05f79c85569501b721d4db813b684391d63e02287c0b2",
* });
* // uses the tag and the image digest
* const tagAndDigest = docker.getRemoteImage({
* name: "nginx:1.19.1@sha256:36b74457bccb56fbf8b05f79c85569501b721d4db813b684391d63e02287c0b2",
* });
* ```
*/
function getRemoteImage(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("docker:index/getRemoteImage:getRemoteImage", {
"name": args.name,
}, opts);
}
exports.getRemoteImage = getRemoteImage;
/**
* `docker.RemoteImage` provides details about a specific Docker Image which needs to be present on the Docker Host
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as docker from "@pulumi/docker";
*
* // uses the 'latest' tag
* const latest = docker.getRemoteImage({
* name: "nginx",
* });
* // uses a specific tag
* const specific = docker.getRemoteImage({
* name: "nginx:1.17.6",
* });
* // use the image digest
* const digest = docker.getRemoteImage({
* name: "nginx@sha256:36b74457bccb56fbf8b05f79c85569501b721d4db813b684391d63e02287c0b2",
* });
* // uses the tag and the image digest
* const tagAndDigest = docker.getRemoteImage({
* name: "nginx:1.19.1@sha256:36b74457bccb56fbf8b05f79c85569501b721d4db813b684391d63e02287c0b2",
* });
* ```
*/
function getRemoteImageOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("docker:index/getRemoteImage:getRemoteImage", {
"name": args.name,
}, opts);
}
exports.getRemoteImageOutput = getRemoteImageOutput;
//# sourceMappingURL=getRemoteImage.js.map
;