这是indexloc提供的服务,不要输入任何密码
Skip to content

[API] Get container package size? #35146

@dot-mike

Description

@dot-mike

Description

Hi,

there does not seem to be a way with the current API spec for getting container image size.
For example the screenshot attached is available in the web interface. But via the API can't see the same information.

If I query https://gitea.url.tld/api/v1/packages/gitea/container/runner-images/ubuntu-22.04-slim I don't see any digests and size.
if I query https://gitea.url.tld/api/v1/packages/gitea/container/runner-images I can find all containers including ubuntu-22.04-slim and each SHA256 digest, but there is no correlation between them. So I can't get a size for the image...

Screenshots

Image

Gitea Version

1.24.3

Can you reproduce the bug on the Gitea demo site?

Yes

Operating System

No response

Browser Version

Firefox

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic/apiConcerns mainly the APItype/proposalThe new feature has not been accepted yet but needs to be discussed first.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions