Chore/reorg backend ts (#2582)

* create index

* chore: Add the star exports for the bindings

---------

Co-authored-by: J H <dragondef@gmail.com>
This commit is contained in:
Aiden McClelland
2024-04-01 11:12:35 -06:00
committed by GitHub
parent 8dfc5052e9
commit dd790dceb5
5 changed files with 722 additions and 603 deletions

View File

@@ -183,6 +183,7 @@ container-runtime/node_modules: container-runtime/package.json container-runtime
core/startos/bindings: $(shell git ls-files -- core ':!:core/startos/bindings/*') $(ENVIRONMENT_FILE)
rm -rf core/startos/bindings
(cd core/ && cargo test --features=test)
ls core/startos/bindings/*.ts | sed 's/core\/startos\/bindings\/\([^.]*\)\.ts/export { \1 } from ".\/\1.ts";/g' > core/startos/bindings/index.ts
npm --prefix sdk exec -- prettier -w ./core/startos/bindings/*.ts
sdk/dist: $(shell git ls-files sdk) core/startos/bindings

1224
core/Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,97 @@
export { ActionId } from "./ActionId.ts";
export { ActionMetadata } from "./ActionMetadata.ts";
export { AddressInfo } from "./AddressInfo.ts";
export { AddSslOptions } from "./AddSslOptions.ts";
export { Alerts } from "./Alerts.ts";
export { Algorithm } from "./Algorithm.ts";
export { AllowedStatuses } from "./AllowedStatuses.ts";
export { AllPackageData } from "./AllPackageData.ts";
export { AlpnInfo } from "./AlpnInfo.ts";
export { BackupProgress } from "./BackupProgress.ts";
export { BindInfo } from "./BindInfo.ts";
export { BindOptions } from "./BindOptions.ts";
export { BindParams } from "./BindParams.ts";
export { Callback } from "./Callback.ts";
export { ChrootParams } from "./ChrootParams.ts";
export { CreateOverlayedImageParams } from "./CreateOverlayedImageParams.ts";
export { CurrentDependencies } from "./CurrentDependencies.ts";
export { CurrentDependencyInfo } from "./CurrentDependencyInfo.ts";
export { DataUrl } from "./DataUrl.ts";
export { Dependencies } from "./Dependencies.ts";
export { DependencyConfigErrors } from "./DependencyConfigErrors.ts";
export { DependencyKind } from "./DependencyKind.ts";
export { DependencyRequirement } from "./DependencyRequirement.ts";
export { DepInfo } from "./DepInfo.ts";
export { Description } from "./Description.ts";
export { DestroyOverlayedImageParams } from "./DestroyOverlayedImageParams.ts";
export { Duration } from "./Duration.ts";
export { ExecuteAction } from "./ExecuteAction.ts";
export { ExportActionParams } from "./ExportActionParams.ts";
export { ExportedHostInfo } from "./ExportedHostInfo.ts";
export { ExportedHostnameInfo } from "./ExportedHostnameInfo.ts";
export { ExportedIpHostname } from "./ExportedIpHostname.ts";
export { ExportedOnionHostname } from "./ExportedOnionHostname.ts";
export { ExportServiceInterfaceParams } from "./ExportServiceInterfaceParams.ts";
export { ExposeForDependentsParams } from "./ExposeForDependentsParams.ts";
export { FullProgress } from "./FullProgress.ts";
export { GetHostInfoParamsKind } from "./GetHostInfoParamsKind.ts";
export { GetHostInfoParams } from "./GetHostInfoParams.ts";
export { GetPrimaryUrlParams } from "./GetPrimaryUrlParams.ts";
export { GetServiceInterfaceParams } from "./GetServiceInterfaceParams.ts";
export { GetServicePortForwardParams } from "./GetServicePortForwardParams.ts";
export { GetSslCertificateParams } from "./GetSslCertificateParams.ts";
export { GetSslKeyParams } from "./GetSslKeyParams.ts";
export { GetStoreParams } from "./GetStoreParams.ts";
export { GetSystemSmtpParams } from "./GetSystemSmtpParams.ts";
export { Governor } from "./Governor.ts";
export { HardwareRequirements } from "./HardwareRequirements.ts";
export { HealthCheckId } from "./HealthCheckId.ts";
export { HealthCheckResult } from "./HealthCheckResult.ts";
export { HostAddress } from "./HostAddress.ts";
export { HostId } from "./HostId.ts";
export { HostInfo } from "./HostInfo.ts";
export { HostKind } from "./HostKind.ts";
export { Host } from "./Host.ts";
export { ImageId } from "./ImageId.ts";
export { InstalledState } from "./InstalledState.ts";
export { InstallingInfo } from "./InstallingInfo.ts";
export { InstallingState } from "./InstallingState.ts";
export { IpInfo } from "./IpInfo.ts";
export { ListServiceInterfacesParams } from "./ListServiceInterfacesParams.ts";
export { MainStatus } from "./MainStatus.ts";
export { Manifest } from "./Manifest.ts";
export { MaybeUtf8String } from "./MaybeUtf8String.ts";
export { MountParams } from "./MountParams.ts";
export { MountTarget } from "./MountTarget.ts";
export { NamedProgress } from "./NamedProgress.ts";
export { PackageDataEntry } from "./PackageDataEntry.ts";
export { PackageId } from "./PackageId.ts";
export { PackageState } from "./PackageState.ts";
export { ParamsMaybePackageId } from "./ParamsMaybePackageId.ts";
export { ParamsPackageId } from "./ParamsPackageId.ts";
export { Progress } from "./Progress.ts";
export { Public } from "./Public.ts";
export { RemoveActionParams } from "./RemoveActionParams.ts";
export { RemoveAddressParams } from "./RemoveAddressParams.ts";
export { ReverseProxyBind } from "./ReverseProxyBind.ts";
export { ReverseProxyDestination } from "./ReverseProxyDestination.ts";
export { ReverseProxyHttp } from "./ReverseProxyHttp.ts";
export { ReverseProxyParams } from "./ReverseProxyParams.ts";
export { Security } from "./Security.ts";
export { ServerInfo } from "./ServerInfo.ts";
export { ServerSpecs } from "./ServerSpecs.ts";
export { ServerStatus } from "./ServerStatus.ts";
export { ServiceInterfaceId } from "./ServiceInterfaceId.ts";
export { ServiceInterface } from "./ServiceInterface.ts";
export { ServiceInterfaceType } from "./ServiceInterfaceType.ts";
export { ServiceInterfaceWithHostInfo } from "./ServiceInterfaceWithHostInfo.ts";
export { SetConfigured } from "./SetConfigured.ts";
export { SetDependenciesParams } from "./SetDependenciesParams.ts";
export { SetHealth } from "./SetHealth.ts";
export { SetMainStatus } from "./SetMainStatus.ts";
export { SetStoreParams } from "./SetStoreParams.ts";
export { Status } from "./Status.ts";
export { UpdateProgress } from "./UpdateProgress.ts";
export { UpdatingState } from "./UpdatingState.ts";
export { VolumeId } from "./VolumeId.ts";
export { WifiInfo } from "./WifiInfo.ts";

View File

@@ -6,6 +6,7 @@ export { setupManifest } from "./manifest/setupManifest"
export { FileHelper } from "./util/fileHelper"
export { setupExposeStore } from "./store/setupExposeStore"
export { pathBuilder } from "./store/PathBuilder"
export * as actions from "./actions"
export * as backup from "./backup"
export * as config from "./config"

View File

@@ -9,7 +9,7 @@ import { Daemons } from "./mainFn/Daemons"
import { PathBuilder, StorePath } from "./store/PathBuilder"
import { ExposedStorePaths } from "./store/setupExposeStore"
import { UrlString } from "./util/getServiceInterface"
export * from "../../core/startos/bindings"
export { SDKManifest } from "./manifest/ManifestTypes"
export type ExportedAction = (options: {