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

    Class PutBuilder

    PutBuilder builds a "put" request to etcd.

    Hierarchy

    Index
    • Parameters

      • kv: KVClient
      • namespace: NSApplicator
      • key: string | Buffer<ArrayBufferLike>

      Returns PutBuilder

    • catch implements Promiselike.catch()

      Type Parameters

      • R

      Parameters

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

      Returns Promise<IPutResponse | R>

    • Updates the key on its current lease, regardless of what that lease is.

      Returns this

    • Sets the lease value to use for storing the key. You usually don't need to use this directly, use client.lease() instead!

      Parameters

      • lease: string | number | Promise<string | number>

      Returns this

    • Sets the GRPC call options for this request.

      Parameters

      • options: CallOptions | undefined

      Returns this

    • then implements Promiselike.then()

      Type Parameters

      • R
      • V

      Parameters

      • onFulfilled: (value: IPutResponse) => R | Promise<R>
      • OptionalonRejected: (err: any) => V | Promise<V>

      Returns Promise<R | V>

    • value sets the value that will be stored in the key.

      Parameters

      • value: string | number | Buffer<ArrayBufferLike>

      Returns this