@cdktf-providers/siderolabs-talos 0.9.0

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.
Files changed (37) hide show
  1. package/LICENSE +355 -0
  2. package/README.md +19 -0
  3. package/dist/cluster-kubeconfig/index.d.ts +187 -0
  4. package/dist/cluster-kubeconfig/index.js +489 -0
  5. package/dist/data-talos-client-configuration/index.d.ts +121 -0
  6. package/dist/data-talos-client-configuration/index.js +292 -0
  7. package/dist/data-talos-cluster-health/index.d.ts +165 -0
  8. package/dist/data-talos-cluster-health/index.js +414 -0
  9. package/dist/data-talos-cluster-kubeconfig/index.d.ts +176 -0
  10. package/dist/data-talos-cluster-kubeconfig/index.js +461 -0
  11. package/dist/data-talos-image-factory-extensions-versions/index.d.ts +118 -0
  12. package/dist/data-talos-image-factory-extensions-versions/index.js +289 -0
  13. package/dist/data-talos-image-factory-overlays-versions/index.d.ts +117 -0
  14. package/dist/data-talos-image-factory-overlays-versions/index.js +285 -0
  15. package/dist/data-talos-image-factory-urls/index.d.ts +163 -0
  16. package/dist/data-talos-image-factory-urls/index.js +272 -0
  17. package/dist/data-talos-image-factory-versions/index.d.ts +71 -0
  18. package/dist/data-talos-image-factory-versions/index.js +182 -0
  19. package/dist/data-talos-machine-configuration/index.d.ts +521 -0
  20. package/dist/data-talos-machine-configuration/index.js +1424 -0
  21. package/dist/data-talos-machine-disks/index.d.ts +208 -0
  22. package/dist/data-talos-machine-disks/index.js +537 -0
  23. package/dist/image-factory-schematic/index.d.ts +50 -0
  24. package/dist/image-factory-schematic/index.js +95 -0
  25. package/dist/index.d.ts +15 -0
  26. package/dist/index.js +16 -0
  27. package/dist/lazy-index.d.ts +0 -0
  28. package/dist/lazy-index.js +16 -0
  29. package/dist/machine-bootstrap/index.d.ts +144 -0
  30. package/dist/machine-bootstrap/index.js +371 -0
  31. package/dist/machine-configuration-apply/index.d.ts +262 -0
  32. package/dist/machine-configuration-apply/index.js +659 -0
  33. package/dist/machine-secrets/index.d.ts +238 -0
  34. package/dist/machine-secrets/index.js +684 -0
  35. package/dist/provider/index.d.ts +54 -0
  36. package/dist/provider/index.js +108 -0
  37. package/package.json +51 -0
@@ -0,0 +1,54 @@
1
+ import { Construct } from 'constructs';
2
+ import * as cdktf from 'cdktf';
3
+ export interface TalosProviderConfig {
4
+ /**
5
+ * The URL of Image Factory to generate schematics. If not set defaults to https://factory.talos.dev.
6
+ *
7
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/siderolabs/talos/0.9.0/docs#image_factory_url TalosProvider#image_factory_url}
8
+ */
9
+ readonly imageFactoryUrl?: string;
10
+ /**
11
+ * Alias name
12
+ *
13
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/siderolabs/talos/0.9.0/docs#alias TalosProvider#alias}
14
+ */
15
+ readonly alias?: string;
16
+ }
17
+ /**
18
+ * Represents a {@link https://registry.terraform.io/providers/siderolabs/talos/0.9.0/docs talos}
19
+ */
20
+ export declare class TalosProvider extends cdktf.TerraformProvider {
21
+ static readonly tfResourceType = "talos";
22
+ /**
23
+ * Generates CDKTF code for importing a TalosProvider resource upon running "cdktf plan <stack-name>"
24
+ * @param scope The scope in which to define this construct
25
+ * @param importToId The construct id used in the generated config for the TalosProvider to import
26
+ * @param importFromId The id of the existing TalosProvider that should be imported. Refer to the {@link https://registry.terraform.io/providers/siderolabs/talos/0.9.0/docs#import import section} in the documentation of this resource for the id to use
27
+ * @param provider? Optional instance of the provider where the TalosProvider to import is found
28
+ */
29
+ static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): any;
30
+ /**
31
+ * Create a new {@link https://registry.terraform.io/providers/siderolabs/talos/0.9.0/docs talos} Resource
32
+ *
33
+ * @param scope The scope in which to define this construct
34
+ * @param id The scoped construct ID. Must be unique amongst siblings in the same scope
35
+ * @param options TalosProviderConfig = {}
36
+ */
37
+ constructor(scope: Construct, id: string, config?: TalosProviderConfig);
38
+ private _imageFactoryUrl?;
39
+ get imageFactoryUrl(): string | undefined;
40
+ set imageFactoryUrl(value: string | undefined);
41
+ resetImageFactoryUrl(): void;
42
+ get imageFactoryUrlInput(): string;
43
+ private _alias?;
44
+ get alias(): string | undefined;
45
+ set alias(value: string | undefined);
46
+ resetAlias(): void;
47
+ get aliasInput(): string;
48
+ protected synthesizeAttributes(): {
49
+ [name: string]: any;
50
+ };
51
+ protected synthesizeHclAttributes(): {
52
+ [name: string]: any;
53
+ };
54
+ }
@@ -0,0 +1,108 @@
1
+ // https://registry.terraform.io/providers/siderolabs/talos/0.9.0/docs
2
+ // generated from terraform resource schema
3
+ import * as cdktf from 'cdktf';
4
+ /**
5
+ * Represents a {@link https://registry.terraform.io/providers/siderolabs/talos/0.9.0/docs talos}
6
+ */
7
+ export class TalosProvider extends cdktf.TerraformProvider {
8
+ // =================
9
+ // STATIC PROPERTIES
10
+ // =================
11
+ static tfResourceType = "talos";
12
+ // ==============
13
+ // STATIC Methods
14
+ // ==============
15
+ /**
16
+ * Generates CDKTF code for importing a TalosProvider resource upon running "cdktf plan <stack-name>"
17
+ * @param scope The scope in which to define this construct
18
+ * @param importToId The construct id used in the generated config for the TalosProvider to import
19
+ * @param importFromId The id of the existing TalosProvider that should be imported. Refer to the {@link https://registry.terraform.io/providers/siderolabs/talos/0.9.0/docs#import import section} in the documentation of this resource for the id to use
20
+ * @param provider? Optional instance of the provider where the TalosProvider to import is found
21
+ */
22
+ static generateConfigForImport(scope, importToId, importFromId, provider) {
23
+ return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "talos", importId: importFromId, provider });
24
+ }
25
+ // ===========
26
+ // INITIALIZER
27
+ // ===========
28
+ /**
29
+ * Create a new {@link https://registry.terraform.io/providers/siderolabs/talos/0.9.0/docs talos} Resource
30
+ *
31
+ * @param scope The scope in which to define this construct
32
+ * @param id The scoped construct ID. Must be unique amongst siblings in the same scope
33
+ * @param options TalosProviderConfig = {}
34
+ */
35
+ constructor(scope, id, config = {}) {
36
+ super(scope, id, {
37
+ terraformResourceType: 'talos',
38
+ terraformGeneratorMetadata: {
39
+ providerName: 'talos',
40
+ providerVersion: '0.9.0',
41
+ providerVersionConstraint: '0.9.0'
42
+ },
43
+ terraformProviderSource: 'siderolabs/talos'
44
+ });
45
+ this._imageFactoryUrl = config.imageFactoryUrl;
46
+ this._alias = config.alias;
47
+ }
48
+ // ==========
49
+ // ATTRIBUTES
50
+ // ==========
51
+ // image_factory_url - computed: false, optional: true, required: false
52
+ _imageFactoryUrl;
53
+ get imageFactoryUrl() {
54
+ return this._imageFactoryUrl;
55
+ }
56
+ set imageFactoryUrl(value) {
57
+ this._imageFactoryUrl = value;
58
+ }
59
+ resetImageFactoryUrl() {
60
+ this._imageFactoryUrl = undefined;
61
+ }
62
+ // Temporarily expose input value. Use with caution.
63
+ get imageFactoryUrlInput() {
64
+ return this._imageFactoryUrl;
65
+ }
66
+ // alias - computed: false, optional: true, required: false
67
+ _alias;
68
+ get alias() {
69
+ return this._alias;
70
+ }
71
+ set alias(value) {
72
+ this._alias = value;
73
+ }
74
+ resetAlias() {
75
+ this._alias = undefined;
76
+ }
77
+ // Temporarily expose input value. Use with caution.
78
+ get aliasInput() {
79
+ return this._alias;
80
+ }
81
+ // =========
82
+ // SYNTHESIS
83
+ // =========
84
+ synthesizeAttributes() {
85
+ return {
86
+ image_factory_url: cdktf.stringToTerraform(this._imageFactoryUrl),
87
+ alias: cdktf.stringToTerraform(this._alias),
88
+ };
89
+ }
90
+ synthesizeHclAttributes() {
91
+ const attrs = {
92
+ image_factory_url: {
93
+ value: cdktf.stringToHclTerraform(this._imageFactoryUrl),
94
+ isBlock: false,
95
+ type: "simple",
96
+ storageClassType: "string",
97
+ },
98
+ alias: {
99
+ value: cdktf.stringToHclTerraform(this._alias),
100
+ isBlock: false,
101
+ type: "simple",
102
+ storageClassType: "string",
103
+ },
104
+ };
105
+ // remove undefined attributes
106
+ return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
107
+ }
108
+ }
package/package.json ADDED
@@ -0,0 +1,51 @@
1
+ {
2
+ "name": "@cdktf-providers/siderolabs-talos",
3
+ "version": "0.9.0",
4
+ "description": "Prebuilt siderolabs/talos Provider for Terraform CDK (cdktf)",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/shunueda/cdktf-providers.git",
8
+ "directory": "gen/siderolabs/talos/typescript"
9
+ },
10
+ "license": "MPL-2.0",
11
+ "type": "module",
12
+ "exports": {
13
+ ".": {
14
+ "import": "./dist/index.js",
15
+ "types": "./dist/index.d.ts",
16
+ "require": "./dist/index.js"
17
+ },
18
+ "./lazy-index": {
19
+ "import": "./dist/lazy-index.js",
20
+ "types": "./dist/lazy-index.d.ts",
21
+ "require": "./dist/lazy-index.js"
22
+ },
23
+ "./*": {
24
+ "import": "./dist/*/index.js",
25
+ "types": "./dist/*/index.d.ts",
26
+ "require": "./dist/*/index.js"
27
+ }
28
+ },
29
+ "files": [
30
+ "dist"
31
+ ],
32
+ "keywords": [
33
+ "cdk",
34
+ "cdktf",
35
+ "provider",
36
+ "terraform",
37
+ "siderolabs",
38
+ "talos"
39
+ ],
40
+ "peerDependencies": {
41
+ "cdktf": "^0.21.0",
42
+ "constructs": "^10.4.2"
43
+ },
44
+ "cdktf": {
45
+ "isDeprecated": false,
46
+ "provider": {
47
+ "name": "registry.terraform.io/siderolabs/talos",
48
+ "version": "0.9.0"
49
+ }
50
+ }
51
+ }