@hashgraph/solo
    Preparing search index...

    YamlConfigMapStorageBackend 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

    • 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.

    • Reads the persisted data from the storage backend and marshals it into a plain javascript object.

      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<object>

      The persisted data represented as a plain javascript object.

    • 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>

    • Write the configuration data to the storage backend by marshalling the plain javascript object 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: object

        The persistent data represented as a plain javascript object.

      Returns Promise<void>