Skip to content

[libartifact] Introduce an event channel in ArtifactStore #465

@nimdrak

Description

@nimdrak

Proposal

I propose adding an event channel to the ArtifactStore struct

Motivation

The primary goal is to provide a mechanism for ArtifactStore to broadcast events related to its operations, such as artifact push or pull actions.
It is an issue in podman containers/podman#27260 (comment)

Benefits

This addition offers two significant advantages:

  1. Enables Real-time Event Consumption: Clients using ArtifactStore can subscribe to this channel. This allows them to receive immediate notifications and react to artifact events as they happen.

  2. Decouples Event Logic: This design simplifies the client's responsibilities. Clients are decoupled from the specifics of event generation. They can simply consume events directly from the provided channel.

Reference

This is the same architecture as libmage.Runtime

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions