mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-03-30 12:21:57 +00:00
chore: Update the backups
This commit is contained in:
56
lib/manifest/ManifestTypes.ts
Normal file
56
lib/manifest/ManifestTypes.ts
Normal file
@@ -0,0 +1,56 @@
|
||||
export interface Container {
|
||||
image: string;
|
||||
mounts: Record<string, string>;
|
||||
shmSizeMb?: number; // if greater
|
||||
sigtermTimeout?: string; // if more than 30s to shutdown
|
||||
}
|
||||
|
||||
export interface GenericManifest {
|
||||
id: string;
|
||||
title: string;
|
||||
version: string;
|
||||
releaseNotes: string;
|
||||
license: string; // name of license
|
||||
replaces: string[];
|
||||
wrapperRepo: string;
|
||||
upstreamRepo: string;
|
||||
supportSite: string;
|
||||
marketingSite: string;
|
||||
donationUrl: string | null;
|
||||
description: {
|
||||
short: string;
|
||||
long: string;
|
||||
};
|
||||
assets: {
|
||||
icon: string; // file path
|
||||
instructions: string; // file path
|
||||
license: string; // file path
|
||||
};
|
||||
containers: Record<string, Container>;
|
||||
volumes: Record<string, string>;
|
||||
alerts: {
|
||||
install: string | null;
|
||||
uninstall: string | null;
|
||||
restore: string | null;
|
||||
start: string | null;
|
||||
stop: string | null;
|
||||
};
|
||||
dependencies: Record<string, Dependency>;
|
||||
}
|
||||
|
||||
export interface Dependency {
|
||||
version: string;
|
||||
description: string | null;
|
||||
requirement:
|
||||
| {
|
||||
type: "opt-in";
|
||||
how: string;
|
||||
}
|
||||
| {
|
||||
type: "opt-out";
|
||||
how: string;
|
||||
}
|
||||
| {
|
||||
type: "required";
|
||||
};
|
||||
}
|
||||
2
lib/manifest/index.ts
Normal file
2
lib/manifest/index.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
export { setupManifest } from "./setupManifest";
|
||||
export * as ManifestTypes from "./ManifestTypes";
|
||||
8
lib/manifest/setupManifest.ts
Normal file
8
lib/manifest/setupManifest.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { GenericManifest } from "./ManifestTypes";
|
||||
|
||||
export function setupManifest<
|
||||
M extends GenericManifest & { id: Id },
|
||||
Id extends string,
|
||||
>(manifest: M): M {
|
||||
return manifest;
|
||||
}
|
||||
Reference in New Issue
Block a user