@hashgraph/solo
    Preparing search index...

    ConfigMapStorageBackend is a storage backend that uses a ConfigMap to store data. The key will be the name of the property within the data object within the ConfigMap.

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    configMap: ConfigMap

    Methods

    • Deletes the persisted data from the storage backend. Not all storage backends support deletion.

      Parameters

      • key: string

        The key to use to delete the data from the storage backend. The key is implementation specific and might be a file path, a config map name, or an environment variable prefix.

      Returns Promise<void>

    • Reads the persisted data from the storage backend and marshals it into bytes.

      Parameters

      • key: string

        The key to use to read the data from the storage backend. The key is implementation specific and might be a file path, a config map name, or an environment variable prefix.

      Returns Promise<Buffer<ArrayBufferLike>>

      The persisted data represented as a byte array.

    • Write the configuration data to the storage backend by marshalling the bytes into the underlying persistent data format.

      Parameters

      • key: string

        The key to use to write the data to the storage backend. The key is implementation specific and might be a file path, a config map name, or an environment variable prefix.

      • data: Buffer

        The persistent data represented as a byte array.

      Returns Promise<void>