NDNts

    Subset of repo DataStore functions needed by AccessManager.

    interface DataStore {
        find: (interest: Interest) => Promise<Data | undefined>;
        get: (name: Name) => Promise<Data | undefined>;
        insert: (
            ...args:
                | (Data | AnyIterable<Data>)[]
                | [{}, ...(Data | AnyIterable<Data>)[]],
        ) => Promise<void>;
    }

    Hierarchy

    • Get
    • Find
    • Insert
      • DataStore
    Index

    Properties

    Properties

    find: (interest: Interest) => Promise<Data | undefined>

    Find Data that satisfies Interest.

    get: (name: Name) => Promise<Data | undefined>

    Retrieve Data by exact name.

    insert: (
        ...args:
            | (Data | AnyIterable<Data>)[]
            | [{}, ...(Data | AnyIterable<Data>)[]],
    ) => Promise<void>

    Insert one or more Data packets.

    Arguments include:

    • an optional Options object
    • zero or more Data, Iterable, or AsyncIterable
    MMNEPVFCICPMFPCPTTAAATR