mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-03-31 04:33:40 +00:00
Merge remote-tracking branch 'origin/master' into feat/new-configs
This commit is contained in:
15
types.ts
15
types.ts
@@ -3,6 +3,8 @@ import { ConfigSpec } from "./types/config-types.ts";
|
|||||||
|
|
||||||
// deno-lint-ignore no-namespace
|
// deno-lint-ignore no-namespace
|
||||||
export namespace ExpectedExports {
|
export namespace ExpectedExports {
|
||||||
|
version:
|
||||||
|
2;
|
||||||
/** Set configuration is called after we have modified and saved the configuration in the embassy ui. Use this to make a file for the docker to read from for configuration. */
|
/** Set configuration is called after we have modified and saved the configuration in the embassy ui. Use this to make a file for the docker to read from for configuration. */
|
||||||
export type setConfig = (
|
export type setConfig = (
|
||||||
effects: Effects,
|
effects: Effects,
|
||||||
@@ -79,8 +81,8 @@ export type Effects = {
|
|||||||
metadata(input: { volumeId: string; path: string }): Promise<Metadata>;
|
metadata(input: { volumeId: string; path: string }): Promise<Metadata>;
|
||||||
/** Create a directory. Usable when not sandboxed */
|
/** Create a directory. Usable when not sandboxed */
|
||||||
createDir(input: { volumeId: string; path: string }): Promise<string>;
|
createDir(input: { volumeId: string; path: string }): Promise<string>;
|
||||||
/** Create a directory. Usable when not sandboxed */
|
|
||||||
createDir(input: { volumeId: string; path: string }): Promise<string>;
|
readDir(input: { volumeId: string; path: string }): Promise<string[]>;
|
||||||
/** Remove a directory. Usable when not sandboxed */
|
/** Remove a directory. Usable when not sandboxed */
|
||||||
removeDir(input: { volumeId: string; path: string }): Promise<string>;
|
removeDir(input: { volumeId: string; path: string }): Promise<string>;
|
||||||
removeFile(input: { volumeId: string; path: string }): Promise<void>;
|
removeFile(input: { volumeId: string; path: string }): Promise<void>;
|
||||||
@@ -103,6 +105,9 @@ export type Effects = {
|
|||||||
term(): Promise<void>;
|
term(): Promise<void>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
chown(input: { volumeId: string; path: string; uid: string }): Promise<null>;
|
||||||
|
chmod(input: { volumeId: string; path: string; mode: string }): Promise<null>;
|
||||||
|
|
||||||
sleep(timeMs: number): Promise<null>;
|
sleep(timeMs: number): Promise<null>;
|
||||||
|
|
||||||
/** Log at the trace level */
|
/** Log at the trace level */
|
||||||
@@ -120,6 +125,12 @@ export type Effects = {
|
|||||||
is_sandboxed(): boolean;
|
is_sandboxed(): boolean;
|
||||||
|
|
||||||
exists(input: { volumeId: string; path: string }): Promise<boolean>;
|
exists(input: { volumeId: string; path: string }): Promise<boolean>;
|
||||||
|
bindLocal(
|
||||||
|
options: { internalPort: number; name: string; externalPort: number },
|
||||||
|
): Promise<string>;
|
||||||
|
bindTor(
|
||||||
|
options: { internalPort: number; name: string; externalPort: number },
|
||||||
|
): Promise<string>;
|
||||||
|
|
||||||
fetch(
|
fetch(
|
||||||
url: string,
|
url: string,
|
||||||
|
|||||||
Reference in New Issue
Block a user