Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cdk8s-image

Package Overview
Dependencies
Maintainers
4
Versions
891
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cdk8s-image - npm Package Compare versions

Comparing version 0.2.636 to 0.2.637

315

API.md

@@ -1,95 +0,310 @@

# API Reference
# API Reference <a name="API Reference" id="api-reference"></a>
**Classes**
## Constructs <a name="Constructs" id="Constructs"></a>
Name|Description
----|-----------
[Image](#cdk8s-image-image)|Represents a docker image built during synthesis from a context directory (`dir`) with a `Dockerfile`.
### Image <a name="Image" id="cdk8s-image.Image"></a>
Represents a docker image built during synthesis from a context directory (`dir`) with a `Dockerfile`.
**Structs**
The image will be built using `docker build` and then pushed through `docker
push`. The URL of the pushed image can be accessed through `image.url`.
Name|Description
----|-----------
[BuildArg](#cdk8s-image-buildarg)|Build arg to pass to the docker build.
[ImageProps](#cdk8s-image-imageprops)|Props for `Image`.
If you push to a registry other than docker hub, you can specify the registry
URL through the `registry` option.
#### Initializers <a name="Initializers" id="cdk8s-image.Image.Initializer"></a>
```typescript
import { Image } from 'cdk8s-image'
## class Image <a id="cdk8s-image-image"></a>
new Image(scope: Construct, id: string, props: ImageProps)
```
Represents a docker image built during synthesis from a context directory (`dir`) with a `Dockerfile`.
| **Name** | **Type** | **Description** |
| --- | --- | --- |
| <code><a href="#cdk8s-image.Image.Initializer.parameter.scope">scope</a></code> | <code>constructs.Construct</code> | *No description.* |
| <code><a href="#cdk8s-image.Image.Initializer.parameter.id">id</a></code> | <code>string</code> | *No description.* |
| <code><a href="#cdk8s-image.Image.Initializer.parameter.props">props</a></code> | <code><a href="#cdk8s-image.ImageProps">ImageProps</a></code> | *No description.* |
The image will be built using `docker build` and then pushed through `docker
push`. The URL of the pushed image can be accessed through `image.url`.
---
If you push to a registry other than docker hub, you can specify the registry
URL through the `registry` option.
##### `scope`<sup>Required</sup> <a name="scope" id="cdk8s-image.Image.Initializer.parameter.scope"></a>
__Implements__: [IConstruct](#constructs-iconstruct), [IDependable](#constructs-idependable)
__Extends__: [Construct](#constructs-construct)
- *Type:* constructs.Construct
### Initializer
---
##### `id`<sup>Required</sup> <a name="id" id="cdk8s-image.Image.Initializer.parameter.id"></a>
- *Type:* string
---
```ts
new Image(scope: Construct, id: string, props: ImageProps)
##### `props`<sup>Required</sup> <a name="props" id="cdk8s-image.Image.Initializer.parameter.props"></a>
- *Type:* <a href="#cdk8s-image.ImageProps">ImageProps</a>
---
#### Methods <a name="Methods" id="Methods"></a>
| **Name** | **Description** |
| --- | --- |
| <code><a href="#cdk8s-image.Image.toString">toString</a></code> | Returns a string representation of this construct. |
---
##### `toString` <a name="toString" id="cdk8s-image.Image.toString"></a>
```typescript
public toString(): string
```
* **scope** (<code>[Construct](#constructs-construct)</code>) *No description*
* **id** (<code>string</code>) *No description*
* **props** (<code>[ImageProps](#cdk8s-image-imageprops)</code>) *No description*
* **dir** (<code>string</code>) The docker build context directory (where `Dockerfile` is).
* **buildArgs** (<code>Array<[BuildArg](#cdk8s-image-buildarg)></code>) List of build args to pass to the build action. __*Optional*__
* **file** (<code>string</code>) Path to Dockerfile. __*Optional*__
* **name** (<code>string</code>) Name for the image. __*Default*__: auto-generated name
* **platform** (<code>string</code>) Set to specify the target platform for the build output, (for example, linux/amd64, linux/arm64, or darwin/amd64). __*Optional*__
* **registry** (<code>string</code>) The registry URL to use. __*Default*__: "docker.io/library"
* **tag** (<code>string</code>) Tag for the image. __*Default*__: "latest"
Returns a string representation of this construct.
#### Static Functions <a name="Static Functions" id="Static Functions"></a>
| **Name** | **Description** |
| --- | --- |
| <code><a href="#cdk8s-image.Image.isConstruct">isConstruct</a></code> | Checks if `x` is a construct. |
### Properties
---
##### `isConstruct` <a name="isConstruct" id="cdk8s-image.Image.isConstruct"></a>
Name | Type | Description
-----|------|-------------
**url** | <code>string</code> | The image URL to use in order to pull this instance of the image.
```typescript
import { Image } from 'cdk8s-image'
Image.isConstruct(x: any)
```
Checks if `x` is a construct.
## struct BuildArg <a id="cdk8s-image-buildarg"></a>
Use this method instead of `instanceof` to properly detect `Construct`
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on
disk are seen as independent, completely different libraries. As a
consequence, the class `Construct` in each copy of the `constructs` library
is seen as a different class, and an instance of one class will not test as
`instanceof` the other class. `npm install` will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the `constructs`
library can be accidentally installed, and `instanceof` will behave
unpredictably. It is safest to avoid using `instanceof`, and using
this type-testing method instead.
###### `x`<sup>Required</sup> <a name="x" id="cdk8s-image.Image.isConstruct.parameter.x"></a>
- *Type:* any
Any object.
---
#### Properties <a name="Properties" id="Properties"></a>
| **Name** | **Type** | **Description** |
| --- | --- | --- |
| <code><a href="#cdk8s-image.Image.property.node">node</a></code> | <code>constructs.Node</code> | The tree node. |
| <code><a href="#cdk8s-image.Image.property.url">url</a></code> | <code>string</code> | The image URL to use in order to pull this instance of the image. |
---
##### `node`<sup>Required</sup> <a name="node" id="cdk8s-image.Image.property.node"></a>
```typescript
public readonly node: Node;
```
- *Type:* constructs.Node
The tree node.
---
##### `url`<sup>Required</sup> <a name="url" id="cdk8s-image.Image.property.url"></a>
```typescript
public readonly url: string;
```
- *Type:* string
The image URL to use in order to pull this instance of the image.
---
## Structs <a name="Structs" id="Structs"></a>
### BuildArg <a name="BuildArg" id="cdk8s-image.BuildArg"></a>
Build arg to pass to the docker build.
#### Initializer <a name="Initializer" id="cdk8s-image.BuildArg.Initializer"></a>
```typescript
import { BuildArg } from 'cdk8s-image'
Name | Type | Description
-----|------|-------------
**name** | <code>string</code> | the name of the build arg.
**value** | <code>string</code> | the value of the build arg.
const buildArg: BuildArg = { ... }
```
#### Properties <a name="Properties" id="Properties"></a>
| **Name** | **Type** | **Description** |
| --- | --- | --- |
| <code><a href="#cdk8s-image.BuildArg.property.name">name</a></code> | <code>string</code> | the name of the build arg. |
| <code><a href="#cdk8s-image.BuildArg.property.value">value</a></code> | <code>string</code> | the value of the build arg. |
## struct ImageProps <a id="cdk8s-image-imageprops"></a>
---
##### `name`<sup>Required</sup> <a name="name" id="cdk8s-image.BuildArg.property.name"></a>
```typescript
public readonly name: string;
```
- *Type:* string
the name of the build arg.
---
##### `value`<sup>Required</sup> <a name="value" id="cdk8s-image.BuildArg.property.value"></a>
```typescript
public readonly value: string;
```
- *Type:* string
the value of the build arg.
---
### ImageProps <a name="ImageProps" id="cdk8s-image.ImageProps"></a>
Props for `Image`.
#### Initializer <a name="Initializer" id="cdk8s-image.ImageProps.Initializer"></a>
```typescript
import { ImageProps } from 'cdk8s-image'
Name | Type | Description
-----|------|-------------
**dir** | <code>string</code> | The docker build context directory (where `Dockerfile` is).
**buildArgs**? | <code>Array<[BuildArg](#cdk8s-image-buildarg)></code> | List of build args to pass to the build action.<br/>__*Optional*__
**file**? | <code>string</code> | Path to Dockerfile.<br/>__*Optional*__
**name**? | <code>string</code> | Name for the image.<br/>__*Default*__: auto-generated name
**platform**? | <code>string</code> | Set to specify the target platform for the build output, (for example, linux/amd64, linux/arm64, or darwin/amd64).<br/>__*Optional*__
**registry**? | <code>string</code> | The registry URL to use.<br/>__*Default*__: "docker.io/library"
**tag**? | <code>string</code> | Tag for the image.<br/>__*Default*__: "latest"
const imageProps: ImageProps = { ... }
```
#### Properties <a name="Properties" id="Properties"></a>
| **Name** | **Type** | **Description** |
| --- | --- | --- |
| <code><a href="#cdk8s-image.ImageProps.property.dir">dir</a></code> | <code>string</code> | The docker build context directory (where `Dockerfile` is). |
| <code><a href="#cdk8s-image.ImageProps.property.buildArgs">buildArgs</a></code> | <code><a href="#cdk8s-image.BuildArg">BuildArg</a>[]</code> | List of build args to pass to the build action. |
| <code><a href="#cdk8s-image.ImageProps.property.file">file</a></code> | <code>string</code> | Path to Dockerfile. |
| <code><a href="#cdk8s-image.ImageProps.property.name">name</a></code> | <code>string</code> | Name for the image. |
| <code><a href="#cdk8s-image.ImageProps.property.platform">platform</a></code> | <code>string</code> | Set to specify the target platform for the build output, (for example, linux/amd64, linux/arm64, or darwin/amd64). |
| <code><a href="#cdk8s-image.ImageProps.property.registry">registry</a></code> | <code>string</code> | The registry URL to use. |
| <code><a href="#cdk8s-image.ImageProps.property.tag">tag</a></code> | <code>string</code> | Tag for the image. |
---
##### `dir`<sup>Required</sup> <a name="dir" id="cdk8s-image.ImageProps.property.dir"></a>
```typescript
public readonly dir: string;
```
- *Type:* string
The docker build context directory (where `Dockerfile` is).
---
##### `buildArgs`<sup>Optional</sup> <a name="buildArgs" id="cdk8s-image.ImageProps.property.buildArgs"></a>
```typescript
public readonly buildArgs: BuildArg[];
```
- *Type:* <a href="#cdk8s-image.BuildArg">BuildArg</a>[]
List of build args to pass to the build action.
---
##### `file`<sup>Optional</sup> <a name="file" id="cdk8s-image.ImageProps.property.file"></a>
```typescript
public readonly file: string;
```
- *Type:* string
Path to Dockerfile.
---
##### `name`<sup>Optional</sup> <a name="name" id="cdk8s-image.ImageProps.property.name"></a>
```typescript
public readonly name: string;
```
- *Type:* string
- *Default:* auto-generated name
Name for the image.
Docker convention is {registry_name}/{name}:{tag}
Visit https://docs.docker.com/engine/reference/commandline/tag/ for more information
---
##### `platform`<sup>Optional</sup> <a name="platform" id="cdk8s-image.ImageProps.property.platform"></a>
```typescript
public readonly platform: string;
```
- *Type:* string
Set to specify the target platform for the build output, (for example, linux/amd64, linux/arm64, or darwin/amd64).
---
##### `registry`<sup>Optional</sup> <a name="registry" id="cdk8s-image.ImageProps.property.registry"></a>
```typescript
public readonly registry: string;
```
- *Type:* string
- *Default:* "docker.io/library"
The registry URL to use.
This will be used as the prefix for the image name.
For example, if you have a local registry listening on port 500, you can set this to `localhost:5000`.
---
##### `tag`<sup>Optional</sup> <a name="tag" id="cdk8s-image.ImageProps.property.tag"></a>
```typescript
public readonly tag: string;
```
- *Type:* string
- *Default:* "latest"
Tag for the image.
Docker convention is {registry_name}/{name}:{tag}
Visit https://docs.docker.com/engine/reference/commandline/tag/ for more information
---

2

lib/image.js

@@ -52,3 +52,3 @@ "use strict";

_a = JSII_RTTI_SYMBOL_1;
Image[_a] = { fqn: "cdk8s-image.Image", version: "0.2.636" };
Image[_a] = { fqn: "cdk8s-image.Image", version: "0.2.637" };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW1hZ2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW1hZ2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxpQ0FBOEI7QUFDOUIsMkNBQXVDO0FBQ3ZDLHFDQUFpQztBQUVqQyxNQUFNLFlBQVksR0FBRyw2QkFBNkIsQ0FBQztBQXFFbkQ7Ozs7Ozs7OztHQVNHO0FBQ0gsTUFBYSxLQUFNLFNBQVEsc0JBQVM7SUFNbEMsWUFBWSxLQUFnQixFQUFFLEVBQVUsRUFBRSxLQUFpQjtRQUN6RCxLQUFLLENBQUMsS0FBSyxFQUFFLEVBQUUsQ0FBQyxDQUFDO1FBQ2pCLE1BQU0sUUFBUSxHQUFHLEtBQUssQ0FBQyxRQUFRLElBQUksbUJBQW1CLENBQUM7UUFDdkQsTUFBTSxJQUFJLEdBQUcsS0FBSyxDQUFDLElBQUksSUFBSSxhQUFLLENBQUMsVUFBVSxDQUFDLElBQUksQ0FBQyxDQUFDO1FBQ2xELE1BQU0sR0FBRyxHQUFHLEtBQUssQ0FBQyxHQUFHLElBQUksUUFBUSxDQUFDO1FBQ2xDLE1BQU0sT0FBTyxHQUFHLEdBQUcsUUFBUSxJQUFJLElBQUksSUFBSSxHQUFHLEVBQUUsQ0FBQztRQUM3QyxNQUFNLFlBQVksR0FBYSxFQUFFLENBQUM7UUFDbEMsS0FBSyxDQUFDLFNBQVMsRUFBRSxPQUFPLENBQUMsQ0FBQyxHQUFHLEVBQUUsRUFBRTtZQUMvQixZQUFZLENBQUMsSUFBSSxDQUFDLGFBQ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RvY2tlciBpbWFnZSAke2Z1bGxUYWd9IGZyb20gJHtwcm9wcy5maWxlID8gcHJvcHMuZmlsZSA6IHByb3BzLmRpcn1gKTtcbiAgICBzaGVsbCgnZG9ja2VyJywgJ2J1aWxkJywgJy10JywgZnVsbFRhZywgcHJvcHMuZGlyLCAuLi5hbGxCdWlsZEFyZ3MpO1xuICAgIGNvbnNvbGUuZXJyb3IoYHB1c2hpbmcgZG9ja2VyIGltYWdlICR7ZnVsbFRhZ30gdG8gJHtyZWdpc3RyeX1gKTtcbiAgICBjb25zdCBwdXNoID0gc2hlbGwoJ2RvY2tlcicsICdwdXNoJywgZnVsbFRhZyk7XG5cbiAgICBjb25zdCByZXN1bHQgPSBQQVJTRV9ESUdFU1QuZXhlYyhwdXNoKTtcbiAgICBpZiAoIXJlc3VsdCkge1xuICAgICAgdGhyb3cgbmV3IEVycm9yKGB1bmFibGUgdG8gcmVhZCBpbWFnZSBkaWdlc3QgYWZ0ZXIgcHVzaDogJHtwdXNofWApO1xuICAgIH1cblxuICAgIHRoaXMudXJsID0gcHJvcHMudGFnID8gZnVsbFRhZzpgJHtyZWdpc3RyeX0vJHtuYW1lfUAke3Jlc3VsdFsxXX1gO1xuICB9XG59XG4iXX0=

@@ -45,3 +45,3 @@ {

"devDependencies": {
"@cdk8s/projen-common": "^0.0.536",
"@cdk8s/projen-common": "^0.0.539",
"@types/jest": "^27",

@@ -51,3 +51,4 @@ "@types/node": "16.18.78",

"@typescript-eslint/parser": "^7",
"cdk8s": "2.68.4",
"cdk8s": "2.68.91",
"commit-and-tag-version": "^12",
"constructs": "10.3.0",

@@ -60,8 +61,7 @@ "eslint": "^8",

"jsii": "1.x",
"jsii-diff": "^1.102.0",
"jsii-docgen": "^1.8.110",
"jsii-pacmak": "^1.102.0",
"jsii-diff": "^1.103.0",
"jsii-docgen": "^10.5.0",
"jsii-pacmak": "^1.103.0",
"jsii-rosetta": "1.x",
"projen": "^0.84.13",
"standard-version": "^9",
"projen": "^0.86.5",
"ts-jest": "^27",

@@ -71,3 +71,3 @@ "typescript": "^3.9.10"

"peerDependencies": {
"cdk8s": "^2.68.4",
"cdk8s": "^2.68.91",
"constructs": "^10.3.0"

@@ -94,3 +94,3 @@ },

},
"version": "0.2.636",
"version": "0.2.637",
"jest": {

@@ -97,0 +97,0 @@ "coverageProvider": "v8",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc