kernl API
    Preparing search index...

    Interface KernlGrants

    The grants surface plus the hook the shell calls when an applet is about to run.

    interface KernlGrants {
        changes$: Observable<GrantRecord>;
        allowDomain(identity: AppletIdentity, domain: string): void;
        availableDomains(): readonly string[];
        baselineDomains(): readonly string[];
        block(identity: AppletIdentity): void;
        ensure(identity: AppletIdentity): GrantRecord;
        get(identity: AppletIdentity): GrantRecord | undefined;
        list(): readonly GrantRecord[];
        revokeDomain(identity: AppletIdentity, domain: string): void;
        setStateQuota(identity: AppletIdentity, bytes: number): void;
        unblock(identity: AppletIdentity): void;
    }

    Hierarchy (View Summary)

    Index
    changes$: Observable<GrantRecord>
    • Allow a domain for this applet; maps to the kehto capabilities that domain needs.

      Parameters

      Returns void

    • Domains the shell can offer at all in the current configuration.

      Returns readonly string[]

    • Domains granted automatically to every applet. In kernl this is the read-only, no-network set.

      Returns readonly string[]