etcd3 API - v2.0.0
    Preparing search index...

    Class MultiRangeBuilder

    MultiRangeBuilder is a query builder that looks up multiple keys.

    Hierarchy (View Summary)

    Index
    callOptions: CallOptions | undefined
    namespace: NSApplicator
    request: IRangeRequest = {}
    • All will instruct etcd to get all keys.

      Returns this

    • Runs the built request and returns the value of the returned key as a buffers.

      Returns Promise<{ [key: string]: Buffer<ArrayBufferLike> }>

    • catch implements Promiselike.catch()

      Type Parameters

      • R

      Parameters

      • onRejected: (err: any) => R | Promise<R>

      Returns Promise<{ [key: string]: string } | R>

    • count returns the number of keys that match the query.

      Returns Promise<number>

    • Runs the built request and parses the returned keys as JSON.

      Returns Promise<{ [key: string]: unknown }>

    • Keys returns an array of keys matching the query, as buffers.

      Returns Promise<Buffer<ArrayBufferLike>[]>

    • Keys returns an array of keys matching the query.

      Parameters

      • encoding: BufferEncoding = 'utf8'

      Returns Promise<string[]>

    • Limit sets the maximum number of results to retrieve.

      Parameters

      • count: number

      Returns this

    • maxCreateRevision sets the maximum create revision of keys to return.

      Parameters

      • maxCreateRevision: string | number

      Returns this

    • maxModRevision sets the maximum modified revision of keys to return.

      Parameters

      • maxModRevision: string | number

      Returns this

    • minCreateRevision sets the minimum create revision of keys to return.

      Parameters

      • minCreateRevision: string | number

      Returns this

    • minModRevision sets the minimum modified revision of keys to return.

      Parameters

      • minModRevision: string | number

      Returns this

    • Runs the built request and returns the values of keys as numbers. May resolve to NaN if the keys do not contain numbers.

      Returns Promise<{ [key: string]: number }>

    • Sets the GRPC call options for this request.

      Parameters

      • options: CallOptions | undefined

      Returns this

    • Prefix instructs the query to scan for all keys that have the provided prefix.

      Parameters

      • value: string | Buffer<ArrayBufferLike>

      Returns this

    • revision is the point-in-time of the key-value store to use for the range.

      Parameters

      • rev: string | number

      Returns this

    • serializable sets the range request to use serializable member-local reads.

      Parameters

      • serializable: boolean

      Returns this

    • Sort specifies how the result should be sorted.

      Parameters

      • target: "Key" | "Version" | "Create" | "Mod" | "Value"
      • order: "None" | "Ascend" | "Descend"

      Returns this

    • Runs the built range request and yields each response chunk from the server. Chunks are not merged; header, more, and count are only meaningful on the final chunk.

      Returns AsyncIterable<IRangeResponse>

    • Runs the built request and returns the value of the returned key as a string, or null if it isn't found.

      Parameters

      • encoding: BufferEncoding = 'utf8'

      Returns Promise<{ [key: string]: string }>

    • then implements Promiselike.then()

      Type Parameters

      • R
      • V

      Parameters

      • onFulfilled: (value: { [key: string]: string }) => R | Promise<R>
      • OptionalonRejected: (err: any) => V | Promise<V>

      Returns Promise<R | V>