@highstate/cert-manager 0.4.5

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 (122) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/README.md +14 -0
  3. package/acme/index.ts +11 -0
  4. package/acme/v1/challenge.ts +101 -0
  5. package/acme/v1/challengeList.ts +107 -0
  6. package/acme/v1/challengePatch.ts +107 -0
  7. package/acme/v1/index.ts +60 -0
  8. package/acme/v1/order.ts +101 -0
  9. package/acme/v1/orderList.ts +107 -0
  10. package/acme/v1/orderPatch.ts +107 -0
  11. package/bin/acme/index.d.ts +2 -0
  12. package/bin/acme/index.js +9 -0
  13. package/bin/acme/index.js.map +1 -0
  14. package/bin/acme/v1/challenge.d.ts +63 -0
  15. package/bin/acme/v1/challenge.js +64 -0
  16. package/bin/acme/v1/challenge.js.map +1 -0
  17. package/bin/acme/v1/challengeList.d.ts +67 -0
  18. package/bin/acme/v1/challengeList.js +65 -0
  19. package/bin/acme/v1/challengeList.js.map +1 -0
  20. package/bin/acme/v1/challengePatch.d.ts +69 -0
  21. package/bin/acme/v1/challengePatch.js +70 -0
  22. package/bin/acme/v1/challengePatch.js.map +1 -0
  23. package/bin/acme/v1/index.d.ts +18 -0
  24. package/bin/acme/v1/index.js +42 -0
  25. package/bin/acme/v1/index.js.map +1 -0
  26. package/bin/acme/v1/order.d.ts +63 -0
  27. package/bin/acme/v1/order.js +64 -0
  28. package/bin/acme/v1/order.js.map +1 -0
  29. package/bin/acme/v1/orderList.d.ts +67 -0
  30. package/bin/acme/v1/orderList.js +65 -0
  31. package/bin/acme/v1/orderList.js.map +1 -0
  32. package/bin/acme/v1/orderPatch.d.ts +69 -0
  33. package/bin/acme/v1/orderPatch.js +70 -0
  34. package/bin/acme/v1/orderPatch.js.map +1 -0
  35. package/bin/cert_manager/index.d.ts +2 -0
  36. package/bin/cert_manager/index.js +9 -0
  37. package/bin/cert_manager/index.js.map +1 -0
  38. package/bin/cert_manager/v1/certificate.d.ts +66 -0
  39. package/bin/cert_manager/v1/certificate.js +67 -0
  40. package/bin/cert_manager/v1/certificate.js.map +1 -0
  41. package/bin/cert_manager/v1/certificateList.d.ts +67 -0
  42. package/bin/cert_manager/v1/certificateList.js +65 -0
  43. package/bin/cert_manager/v1/certificateList.js.map +1 -0
  44. package/bin/cert_manager/v1/certificatePatch.d.ts +72 -0
  45. package/bin/cert_manager/v1/certificatePatch.js +73 -0
  46. package/bin/cert_manager/v1/certificatePatch.js.map +1 -0
  47. package/bin/cert_manager/v1/certificateRequest.d.ts +71 -0
  48. package/bin/cert_manager/v1/certificateRequest.js +72 -0
  49. package/bin/cert_manager/v1/certificateRequest.js.map +1 -0
  50. package/bin/cert_manager/v1/certificateRequestList.d.ts +67 -0
  51. package/bin/cert_manager/v1/certificateRequestList.js +65 -0
  52. package/bin/cert_manager/v1/certificateRequestList.js.map +1 -0
  53. package/bin/cert_manager/v1/certificateRequestPatch.d.ts +77 -0
  54. package/bin/cert_manager/v1/certificateRequestPatch.js +78 -0
  55. package/bin/cert_manager/v1/certificateRequestPatch.js.map +1 -0
  56. package/bin/cert_manager/v1/clusterIssuer.d.ts +67 -0
  57. package/bin/cert_manager/v1/clusterIssuer.js +68 -0
  58. package/bin/cert_manager/v1/clusterIssuer.js.map +1 -0
  59. package/bin/cert_manager/v1/clusterIssuerList.d.ts +67 -0
  60. package/bin/cert_manager/v1/clusterIssuerList.js +65 -0
  61. package/bin/cert_manager/v1/clusterIssuerList.js.map +1 -0
  62. package/bin/cert_manager/v1/clusterIssuerPatch.d.ts +73 -0
  63. package/bin/cert_manager/v1/clusterIssuerPatch.js +74 -0
  64. package/bin/cert_manager/v1/clusterIssuerPatch.js.map +1 -0
  65. package/bin/cert_manager/v1/index.d.ts +36 -0
  66. package/bin/cert_manager/v1/index.js +66 -0
  67. package/bin/cert_manager/v1/index.js.map +1 -0
  68. package/bin/cert_manager/v1/issuer.d.ts +66 -0
  69. package/bin/cert_manager/v1/issuer.js +67 -0
  70. package/bin/cert_manager/v1/issuer.js.map +1 -0
  71. package/bin/cert_manager/v1/issuerList.d.ts +67 -0
  72. package/bin/cert_manager/v1/issuerList.js +65 -0
  73. package/bin/cert_manager/v1/issuerList.js.map +1 -0
  74. package/bin/cert_manager/v1/issuerPatch.d.ts +72 -0
  75. package/bin/cert_manager/v1/issuerPatch.js +73 -0
  76. package/bin/cert_manager/v1/issuerPatch.js.map +1 -0
  77. package/bin/index.d.ts +7 -0
  78. package/bin/index.js +26 -0
  79. package/bin/index.js.map +1 -0
  80. package/bin/meta/v1.d.ts +3 -0
  81. package/bin/meta/v1.js +3 -0
  82. package/bin/meta/v1.js.map +1 -0
  83. package/bin/package.json +42 -0
  84. package/bin/provider.d.ts +21 -0
  85. package/bin/provider.js +38 -0
  86. package/bin/provider.js.map +1 -0
  87. package/bin/types/index.d.ts +3 -0
  88. package/bin/types/index.js +11 -0
  89. package/bin/types/index.js.map +1 -0
  90. package/bin/types/input.d.ts +20729 -0
  91. package/bin/types/input.js +5 -0
  92. package/bin/types/input.js.map +1 -0
  93. package/bin/types/output.d.ts +21177 -0
  94. package/bin/types/output.js +5 -0
  95. package/bin/types/output.js.map +1 -0
  96. package/bin/utilities.d.ts +8 -0
  97. package/bin/utilities.js +102 -0
  98. package/bin/utilities.js.map +1 -0
  99. package/cert_manager/index.ts +11 -0
  100. package/cert_manager/v1/certificate.ts +104 -0
  101. package/cert_manager/v1/certificateList.ts +107 -0
  102. package/cert_manager/v1/certificatePatch.ts +110 -0
  103. package/cert_manager/v1/certificateRequest.ts +109 -0
  104. package/cert_manager/v1/certificateRequestList.ts +107 -0
  105. package/cert_manager/v1/certificateRequestPatch.ts +115 -0
  106. package/cert_manager/v1/clusterIssuer.ts +105 -0
  107. package/cert_manager/v1/clusterIssuerList.ts +107 -0
  108. package/cert_manager/v1/clusterIssuerPatch.ts +111 -0
  109. package/cert_manager/v1/index.ts +102 -0
  110. package/cert_manager/v1/issuer.ts +104 -0
  111. package/cert_manager/v1/issuerList.ts +107 -0
  112. package/cert_manager/v1/issuerPatch.ts +110 -0
  113. package/index.ts +32 -0
  114. package/meta/v1.ts +4 -0
  115. package/package.json +43 -0
  116. package/provider.ts +44 -0
  117. package/scripts/postinstall.js +13 -0
  118. package/tsconfig.json +45 -0
  119. package/types/index.ts +13 -0
  120. package/types/input.ts +21284 -0
  121. package/types/output.ts +21747 -0
  122. package/utilities.ts +97 -0
package/utilities.ts ADDED
@@ -0,0 +1,97 @@
1
+ // *** WARNING: this file was generated by crd2pulumi. ***
2
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
3
+
4
+
5
+ import * as runtime from "@pulumi/pulumi/runtime";
6
+ import * as pulumi from "@pulumi/pulumi";
7
+
8
+ export function getEnv(...vars: string[]): string | undefined {
9
+ for (const v of vars) {
10
+ const value = process.env[v];
11
+ if (value) {
12
+ return value;
13
+ }
14
+ }
15
+ return undefined;
16
+ }
17
+
18
+ export function getEnvBoolean(...vars: string[]): boolean | undefined {
19
+ const s = getEnv(...vars);
20
+ if (s !== undefined) {
21
+ // NOTE: these values are taken from https://golang.org/src/strconv/atob.go?s=351:391#L1, which is what
22
+ // Terraform uses internally when parsing boolean values.
23
+ if (["1", "t", "T", "true", "TRUE", "True"].find(v => v === s) !== undefined) {
24
+ return true;
25
+ }
26
+ if (["0", "f", "F", "false", "FALSE", "False"].find(v => v === s) !== undefined) {
27
+ return false;
28
+ }
29
+ }
30
+ return undefined;
31
+ }
32
+
33
+ export function getEnvNumber(...vars: string[]): number | undefined {
34
+ const s = getEnv(...vars);
35
+ if (s !== undefined) {
36
+ const f = parseFloat(s);
37
+ if (!isNaN(f)) {
38
+ return f;
39
+ }
40
+ }
41
+ return undefined;
42
+ }
43
+
44
+ export const getVersion: () => string = () => "4.18.0"
45
+
46
+ function unusedGetVersion(): string {
47
+ let version = require('./package.json').version;
48
+ // Node allows for the version to be prefixed by a "v", while semver doesn't.
49
+ // If there is a v, strip it off.
50
+ if (version.indexOf('v') === 0) {
51
+ version = version.slice(1);
52
+ }
53
+ return version;
54
+ }
55
+
56
+ /** @internal */
57
+ export function resourceOptsDefaults(): any {
58
+ return { version: getVersion() };
59
+ }
60
+
61
+ /** @internal */
62
+ export function lazyLoad(exports: any, props: string[], loadModule: any) {
63
+ for (let property of props) {
64
+ Object.defineProperty(exports, property, {
65
+ enumerable: true,
66
+ get: function() {
67
+ return loadModule()[property];
68
+ },
69
+ });
70
+ }
71
+ }
72
+
73
+ export async function callAsync<T>(
74
+ tok: string,
75
+ props: pulumi.Inputs,
76
+ res?: pulumi.Resource,
77
+ opts?: {property?: string},
78
+ ): Promise<T> {
79
+ const o: any = runtime.call<T>(tok, props, res);
80
+ const value = await o.promise(true /*withUnknowns*/);
81
+ const isKnown = await o.isKnown;
82
+ const isSecret = await o.isSecret;
83
+ const problem: string|undefined =
84
+ !isKnown ? "an unknown value"
85
+ : isSecret ? "a secret value"
86
+ : undefined;
87
+ // Ingoring o.resources silently. They are typically non-empty, r.f() calls include r as a dependency.
88
+ if (problem) {
89
+ throw new Error(`Plain resource method "${tok}" incorrectly returned ${problem}. ` +
90
+ "This is an error in the provider, please report this to the provider developer.");
91
+ }
92
+ // Extract a single property if requested.
93
+ if (opts && opts.property) {
94
+ return value[opts.property];
95
+ }
96
+ return value;
97
+ }