Fake Mirrors
    Preparing search index...

    Class MinioStorage

    MinIO-based storage implementation.

    Uses the official MinIO JavaScript client to interact with MinIO or any S3-compatible storage service.

    Implements

    • Checks that the configured bucket exists.

      This method is typically called during application startup to verify that the storage bucket is accessible.

      Returns Promise<void>

      LifecycleError If the bucket does not exist or is inaccessible.

    • Deletes an object from the storage.

      Parameters

      • objectName: string

        The path of the object to delete.

      Returns Promise<void>

      StorageError If the object cannot be deleted.

    • Retrieves an object from the storage.

      Parameters

      • objectName: string

        The path of the object to retrieve.

      Returns Promise<Buffer<ArrayBufferLike>>

      The object content as a Buffer.

      StorageError If the object cannot be retrieved.

    • Stores an object in the storage.

      Parameters

      • objectName: string

        The path to assign to the object.

      • data: Buffer

        The object content as a Buffer.

      • headers: Record<string, string>

        Custom headers to attach to the object.

      Returns Promise<void>

      StorageError If the object cannot be stored.

    • Registers the storage as a singleton in the DI container.

      Parameters

      • container: DIContainer

        The DI container to register in.

      Returns void