kernl API
    Preparing search index...

    Interface DownloadClients

    The person's download connections, and the routing the services read.

    interface DownloadClients {
        ready: Promise<void>;
        state$: Observable<DownloadClientsState>;
        add(
            program: DownloadProgram,
            signIn: ClientEndpoint,
            label?: string,
        ): Promise<DownloadConnection>;
        check(
            program: DownloadProgram,
            typed: ClientEndpoint,
            existing?: string,
        ): Promise<CheckedConnection>;
        chooseDefault(domain: RoutedDomain, id: string): void;
        remove(id: string): Promise<void>;
        routing<D extends DownloadDomain>(
            domain: D,
        ): ConnectionRouting<ClientFor<D>>;
        state(): DownloadClientsState;
        update(id: string, change: ConnectionChange): Promise<DownloadConnection>;
    }
    Index
    ready: Promise<void>

    Settles once the kept sign-ins have been asked for from the secrets provider; connections serve from then on.

    state$: Observable<DownloadClientsState>
    • Keep a new connection. Its label defaults to the program's name, numbered when taken. Rejects invalid:… when the address, label or sign-in cannot be used from this page, and with the secrets provider's reason when it will not keep a secret; nothing is saved then.

      Parameters

      Returns Promise<DownloadConnection>

    • Work out the address's scheme when none was typed, check it against how kernl is served, and ask the program whether it is there. Saves nothing. With existing, a password or key left empty is that connection's kept one, but only for the address it was kept for. Rejects with the reason a person can be told: invalid:…, denied:credentials, unavailable:….

      Parameters

      Returns Promise<CheckedConnection>

    • Choose where new work for a domain goes. Throws invalid:connection when the id is not a connection serving that domain.

      Parameters

      Returns void

    • Forget a connection and its kept secrets. Removing a domain's default makes the next of its kind the default.

      Parameters

      • id: string

      Returns Promise<void>