SPDX-License-Identifier: Apache-2.0

interface Namespaces {
    create(namespace: string): Promise<boolean>;
    delete(namespace: string): Promise<boolean>;
    has(namespace: string): Promise<boolean>;
    list(): Promise<string[]>;
}

Methods

  • Check if a namespace exists

    Parameters

    • namespace: string

      the name of the namespace

    Returns Promise<boolean>

    true if the namespace exists