pulumi-docker-build 0.0.6__py3-none-any.whl → 0.1.0a1767073522__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pulumi_docker_build/__init__.py +1 -0
- pulumi_docker_build/_enums.py +10 -4
- pulumi_docker_build/_inputs.py +1345 -654
- pulumi_docker_build/_utilities.py +9 -5
- pulumi_docker_build/config/__init__.py +1 -0
- pulumi_docker_build/config/__init__.pyi +6 -1
- pulumi_docker_build/config/vars.py +8 -3
- pulumi_docker_build/image.py +155 -149
- pulumi_docker_build/index.py +41 -35
- pulumi_docker_build/outputs.py +465 -532
- pulumi_docker_build/provider.py +18 -12
- pulumi_docker_build/pulumi-plugin.json +1 -1
- {pulumi_docker_build-0.0.6.dist-info → pulumi_docker_build-0.1.0a1767073522.dist-info}/METADATA +7 -6
- pulumi_docker_build-0.1.0a1767073522.dist-info/RECORD +17 -0
- {pulumi_docker_build-0.0.6.dist-info → pulumi_docker_build-0.1.0a1767073522.dist-info}/WHEEL +1 -1
- pulumi_docker_build-0.0.6.dist-info/RECORD +0 -17
- {pulumi_docker_build-0.0.6.dist-info → pulumi_docker_build-0.1.0a1767073522.dist-info}/top_level.txt +0 -0
pulumi_docker_build/index.py
CHANGED
|
@@ -2,11 +2,16 @@
|
|
|
2
2
|
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import builtins as _builtins
|
|
6
6
|
import warnings
|
|
7
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
10
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
10
15
|
from . import _utilities
|
|
11
16
|
from . import outputs
|
|
12
17
|
from ._inputs import *
|
|
@@ -16,15 +21,15 @@ __all__ = ['IndexArgs', 'Index']
|
|
|
16
21
|
@pulumi.input_type
|
|
17
22
|
class IndexArgs:
|
|
18
23
|
def __init__(__self__, *,
|
|
19
|
-
sources: pulumi.Input[Sequence[pulumi.Input[str]]],
|
|
20
|
-
tag: pulumi.Input[str],
|
|
21
|
-
push: Optional[pulumi.Input[bool]] = None,
|
|
24
|
+
sources: pulumi.Input[Sequence[pulumi.Input[_builtins.str]]],
|
|
25
|
+
tag: pulumi.Input[_builtins.str],
|
|
26
|
+
push: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
22
27
|
registry: Optional[pulumi.Input['RegistryArgs']] = None):
|
|
23
28
|
"""
|
|
24
29
|
The set of arguments for constructing a Index resource.
|
|
25
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] sources: Existing images to include in the index.
|
|
26
|
-
:param pulumi.Input[str] tag: The tag to apply to the index.
|
|
27
|
-
:param pulumi.Input[bool] push: If true, push the index to the target registry.
|
|
30
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] sources: Existing images to include in the index.
|
|
31
|
+
:param pulumi.Input[_builtins.str] tag: The tag to apply to the index.
|
|
32
|
+
:param pulumi.Input[_builtins.bool] push: If true, push the index to the target registry.
|
|
28
33
|
|
|
29
34
|
Defaults to `true`.
|
|
30
35
|
:param pulumi.Input['RegistryArgs'] registry: Authentication for the registry where the tagged index will be pushed.
|
|
@@ -40,33 +45,33 @@ class IndexArgs:
|
|
|
40
45
|
if registry is not None:
|
|
41
46
|
pulumi.set(__self__, "registry", registry)
|
|
42
47
|
|
|
43
|
-
@property
|
|
48
|
+
@_builtins.property
|
|
44
49
|
@pulumi.getter
|
|
45
|
-
def sources(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
|
|
50
|
+
def sources(self) -> pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]:
|
|
46
51
|
"""
|
|
47
52
|
Existing images to include in the index.
|
|
48
53
|
"""
|
|
49
54
|
return pulumi.get(self, "sources")
|
|
50
55
|
|
|
51
56
|
@sources.setter
|
|
52
|
-
def sources(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]):
|
|
57
|
+
def sources(self, value: pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]):
|
|
53
58
|
pulumi.set(self, "sources", value)
|
|
54
59
|
|
|
55
|
-
@property
|
|
60
|
+
@_builtins.property
|
|
56
61
|
@pulumi.getter
|
|
57
|
-
def tag(self) -> pulumi.Input[str]:
|
|
62
|
+
def tag(self) -> pulumi.Input[_builtins.str]:
|
|
58
63
|
"""
|
|
59
64
|
The tag to apply to the index.
|
|
60
65
|
"""
|
|
61
66
|
return pulumi.get(self, "tag")
|
|
62
67
|
|
|
63
68
|
@tag.setter
|
|
64
|
-
def tag(self, value: pulumi.Input[str]):
|
|
69
|
+
def tag(self, value: pulumi.Input[_builtins.str]):
|
|
65
70
|
pulumi.set(self, "tag", value)
|
|
66
71
|
|
|
67
|
-
@property
|
|
72
|
+
@_builtins.property
|
|
68
73
|
@pulumi.getter
|
|
69
|
-
def push(self) -> Optional[pulumi.Input[bool]]:
|
|
74
|
+
def push(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
70
75
|
"""
|
|
71
76
|
If true, push the index to the target registry.
|
|
72
77
|
|
|
@@ -75,10 +80,10 @@ class IndexArgs:
|
|
|
75
80
|
return pulumi.get(self, "push")
|
|
76
81
|
|
|
77
82
|
@push.setter
|
|
78
|
-
def push(self, value: Optional[pulumi.Input[bool]]):
|
|
83
|
+
def push(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
79
84
|
pulumi.set(self, "push", value)
|
|
80
85
|
|
|
81
|
-
@property
|
|
86
|
+
@_builtins.property
|
|
82
87
|
@pulumi.getter
|
|
83
88
|
def registry(self) -> Optional[pulumi.Input['RegistryArgs']]:
|
|
84
89
|
"""
|
|
@@ -93,15 +98,16 @@ class IndexArgs:
|
|
|
93
98
|
pulumi.set(self, "registry", value)
|
|
94
99
|
|
|
95
100
|
|
|
101
|
+
@pulumi.type_token("docker-build:index:Index")
|
|
96
102
|
class Index(pulumi.CustomResource):
|
|
97
103
|
@overload
|
|
98
104
|
def __init__(__self__,
|
|
99
105
|
resource_name: str,
|
|
100
106
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
101
|
-
push: Optional[pulumi.Input[bool]] = None,
|
|
107
|
+
push: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
102
108
|
registry: Optional[pulumi.Input[Union['RegistryArgs', 'RegistryArgsDict']]] = None,
|
|
103
|
-
sources: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
104
|
-
tag: Optional[pulumi.Input[str]] = None,
|
|
109
|
+
sources: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
110
|
+
tag: Optional[pulumi.Input[_builtins.str]] = None,
|
|
105
111
|
__props__=None):
|
|
106
112
|
"""
|
|
107
113
|
A wrapper around `docker buildx imagetools create` to create an index
|
|
@@ -175,14 +181,14 @@ class Index(pulumi.CustomResource):
|
|
|
175
181
|
|
|
176
182
|
:param str resource_name: The name of the resource.
|
|
177
183
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
178
|
-
:param pulumi.Input[bool] push: If true, push the index to the target registry.
|
|
184
|
+
:param pulumi.Input[_builtins.bool] push: If true, push the index to the target registry.
|
|
179
185
|
|
|
180
186
|
Defaults to `true`.
|
|
181
187
|
:param pulumi.Input[Union['RegistryArgs', 'RegistryArgsDict']] registry: Authentication for the registry where the tagged index will be pushed.
|
|
182
188
|
|
|
183
189
|
Credentials can also be included with the provider's configuration.
|
|
184
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] sources: Existing images to include in the index.
|
|
185
|
-
:param pulumi.Input[str] tag: The tag to apply to the index.
|
|
190
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] sources: Existing images to include in the index.
|
|
191
|
+
:param pulumi.Input[_builtins.str] tag: The tag to apply to the index.
|
|
186
192
|
"""
|
|
187
193
|
...
|
|
188
194
|
@overload
|
|
@@ -275,10 +281,10 @@ class Index(pulumi.CustomResource):
|
|
|
275
281
|
def _internal_init(__self__,
|
|
276
282
|
resource_name: str,
|
|
277
283
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
278
|
-
push: Optional[pulumi.Input[bool]] = None,
|
|
284
|
+
push: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
279
285
|
registry: Optional[pulumi.Input[Union['RegistryArgs', 'RegistryArgsDict']]] = None,
|
|
280
|
-
sources: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
281
|
-
tag: Optional[pulumi.Input[str]] = None,
|
|
286
|
+
sources: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
287
|
+
tag: Optional[pulumi.Input[_builtins.str]] = None,
|
|
282
288
|
__props__=None):
|
|
283
289
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
284
290
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -328,9 +334,9 @@ class Index(pulumi.CustomResource):
|
|
|
328
334
|
__props__.__dict__["tag"] = None
|
|
329
335
|
return Index(resource_name, opts=opts, __props__=__props__)
|
|
330
336
|
|
|
331
|
-
@property
|
|
337
|
+
@_builtins.property
|
|
332
338
|
@pulumi.getter
|
|
333
|
-
def push(self) -> pulumi.Output[Optional[bool]]:
|
|
339
|
+
def push(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
334
340
|
"""
|
|
335
341
|
If true, push the index to the target registry.
|
|
336
342
|
|
|
@@ -338,9 +344,9 @@ class Index(pulumi.CustomResource):
|
|
|
338
344
|
"""
|
|
339
345
|
return pulumi.get(self, "push")
|
|
340
346
|
|
|
341
|
-
@property
|
|
347
|
+
@_builtins.property
|
|
342
348
|
@pulumi.getter
|
|
343
|
-
def ref(self) -> pulumi.Output[str]:
|
|
349
|
+
def ref(self) -> pulumi.Output[_builtins.str]:
|
|
344
350
|
"""
|
|
345
351
|
The pushed tag with digest.
|
|
346
352
|
|
|
@@ -348,7 +354,7 @@ class Index(pulumi.CustomResource):
|
|
|
348
354
|
"""
|
|
349
355
|
return pulumi.get(self, "ref")
|
|
350
356
|
|
|
351
|
-
@property
|
|
357
|
+
@_builtins.property
|
|
352
358
|
@pulumi.getter
|
|
353
359
|
def registry(self) -> pulumi.Output[Optional['outputs.Registry']]:
|
|
354
360
|
"""
|
|
@@ -358,17 +364,17 @@ class Index(pulumi.CustomResource):
|
|
|
358
364
|
"""
|
|
359
365
|
return pulumi.get(self, "registry")
|
|
360
366
|
|
|
361
|
-
@property
|
|
367
|
+
@_builtins.property
|
|
362
368
|
@pulumi.getter
|
|
363
|
-
def sources(self) -> pulumi.Output[Sequence[str]]:
|
|
369
|
+
def sources(self) -> pulumi.Output[Sequence[_builtins.str]]:
|
|
364
370
|
"""
|
|
365
371
|
Existing images to include in the index.
|
|
366
372
|
"""
|
|
367
373
|
return pulumi.get(self, "sources")
|
|
368
374
|
|
|
369
|
-
@property
|
|
375
|
+
@_builtins.property
|
|
370
376
|
@pulumi.getter
|
|
371
|
-
def tag(self) -> pulumi.Output[str]:
|
|
377
|
+
def tag(self) -> pulumi.Output[_builtins.str]:
|
|
372
378
|
"""
|
|
373
379
|
The tag to apply to the index.
|
|
374
380
|
"""
|