mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 18:31:52 +00:00
* Feature: Add in the clear bindings * wip: Working on network * fix: Make it so the config gives the url * chore: Remove the repeated types * chore: Add in the todo's here * chore: UPdate and remove some poorly name var * chore: Remove the clear-bindings impl * chore: Remove the wrapper * handle HostnameInfo for Host bindings Co-authored-by: Jade <Blu-J@users.noreply.github.com> * ?? * chore: Make the install work * Fix: Url's not being created * chore: Fix the local onion in url * include port in hostname * Chore of adding a comment just to modify. --------- Co-authored-by: Aiden McClelland <me@drbonez.dev> Co-authored-by: Jade <Blu-J@users.noreply.github.com>
32 lines
860 B
TypeScript
32 lines
860 B
TypeScript
import { ServiceInterfaceBuilder } from "../interfaces/ServiceInterfaceBuilder"
|
|
import { Effects } from "../types"
|
|
import { sdk } from "./output.sdk"
|
|
|
|
describe("host", () => {
|
|
test("Testing that the types work", () => {
|
|
async function test(effects: Effects) {
|
|
const foo = sdk.host.multi(effects, "foo")
|
|
const fooOrigin = await foo.bindPort(80, {
|
|
protocol: "http" as const,
|
|
preferredExternalPort: 80,
|
|
})
|
|
const fooInterface = new ServiceInterfaceBuilder({
|
|
effects,
|
|
name: "Foo",
|
|
id: "foo",
|
|
description: "A Foo",
|
|
hasPrimary: false,
|
|
disabled: false,
|
|
type: "ui",
|
|
username: "bar",
|
|
path: "/baz",
|
|
search: { qux: "yes" },
|
|
schemeOverride: null,
|
|
masked: false,
|
|
})
|
|
|
|
await fooOrigin.export([fooInterface])
|
|
}
|
|
})
|
|
})
|