@pulumi/docker
Version:
A Pulumi package for interacting with Docker in Pulumi programs
60 lines • 2.34 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.getRegistryImageOutput = exports.getRegistryImage = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Reads the image metadata from a Docker Registry. Used in conjunction with the docker.RemoteImage resource to keep an image up to date on the latest available version of the tag.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as docker from "@pulumi/docker";
*
* const ubuntu = docker.getRegistryImage({
* name: "ubuntu:precise",
* });
* const ubuntuRemoteImage = new docker.RemoteImage("ubuntu", {
* name: ubuntu.then(ubuntu => ubuntu.name),
* pullTriggers: [ubuntu.then(ubuntu => ubuntu.sha256Digest)],
* });
* ```
*/
function getRegistryImage(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("docker:index/getRegistryImage:getRegistryImage", {
"insecureSkipVerify": args.insecureSkipVerify,
"name": args.name,
}, opts);
}
exports.getRegistryImage = getRegistryImage;
/**
* Reads the image metadata from a Docker Registry. Used in conjunction with the docker.RemoteImage resource to keep an image up to date on the latest available version of the tag.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as docker from "@pulumi/docker";
*
* const ubuntu = docker.getRegistryImage({
* name: "ubuntu:precise",
* });
* const ubuntuRemoteImage = new docker.RemoteImage("ubuntu", {
* name: ubuntu.then(ubuntu => ubuntu.name),
* pullTriggers: [ubuntu.then(ubuntu => ubuntu.sha256Digest)],
* });
* ```
*/
function getRegistryImageOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("docker:index/getRegistryImage:getRegistryImage", {
"insecureSkipVerify": args.insecureSkipVerify,
"name": args.name,
}, opts);
}
exports.getRegistryImageOutput = getRegistryImageOutput;
//# sourceMappingURL=getRegistryImage.js.map