@openstrap/plugin-contract 0.1.2 → 0.2.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.
- package/Provider.d.ts +7 -20
- package/index.d.ts +0 -1
- package/package.json +1 -1
package/Provider.d.ts
CHANGED
|
@@ -89,25 +89,6 @@ export type MachineResources = {
|
|
|
89
89
|
diskBytes: number;
|
|
90
90
|
};
|
|
91
91
|
|
|
92
|
-
/** Declarative cloud-config passed to cloud-init; executable modules are rejected by OpenStrap. */
|
|
93
|
-
export type CloudInitOptions = {
|
|
94
|
-
[key: string]: unknown;
|
|
95
|
-
/** Compatibility alias for cloud-init's package_update. */
|
|
96
|
-
packageUpdate?: boolean;
|
|
97
|
-
/** Compatibility alias for cloud-init's package_upgrade. */
|
|
98
|
-
packageUpgrade?: boolean;
|
|
99
|
-
packages?: readonly (string | readonly [name: string, version: string] | {
|
|
100
|
-
name: string;
|
|
101
|
-
version?: string;
|
|
102
|
-
/** Official HTTPS repository setup script, run as root before APT installs this package. */
|
|
103
|
-
setup: string;
|
|
104
|
-
})[];
|
|
105
|
-
/** Native APT configuration, interpreted by cloud-init. */
|
|
106
|
-
apt?: Readonly<Record<string, unknown>>;
|
|
107
|
-
/** Maximum time to wait for guest initialization; defaults to fifteen minutes. */
|
|
108
|
-
timeoutMs?: number;
|
|
109
|
-
};
|
|
110
|
-
|
|
111
92
|
export type MachineNetwork = {
|
|
112
93
|
hostAccess?: boolean;
|
|
113
94
|
/** A provider-managed private network, in addition to outbound NAT. */
|
|
@@ -134,7 +115,13 @@ export type MachineRequest = {
|
|
|
134
115
|
machineType?: string;
|
|
135
116
|
/** Whether a guest may reach services on the provider's host through its network gateway. */
|
|
136
117
|
network?: MachineNetwork;
|
|
137
|
-
|
|
118
|
+
/**
|
|
119
|
+
* The project's cloud-init user data for the first boot, as its file is written, with the values
|
|
120
|
+
* the blueprint declares filled in: any format cloud-init reads (`#cloud-config`, a script, …).
|
|
121
|
+
* The provider sends it beside its own part (the managed user and its key) as a MIME multipart
|
|
122
|
+
* archive, so neither replaces the other. Present only where the blueprint names a file.
|
|
123
|
+
*/
|
|
124
|
+
userData?: string;
|
|
138
125
|
/** Whether the machine needs a screen. Absent is no screen, which is what a server wants. */
|
|
139
126
|
display?: boolean;
|
|
140
127
|
/**
|
package/index.d.ts
CHANGED
package/package.json
CHANGED