debian-forge-composer/internal/cloudapi/v2
Brian C. Lane 532f1b0396 cloudapi: Hook up the /search/packages handler
This connects all the pieces needed to implement the search.

If you POST a request to /search/packages like this:

    {
      "packages": [
        "tmux"
      ],
      "distribution": "fedora-41",
      "architecture": "x86_64"
    }

It will return details about the tmux packages that looks like this:

{
  "packages": [
    {
      "arch": "x86_64",
      "buildtime": "2024-10-10T00:19:06Z",
      "description": "tmux is ...",
      "license": "ISC AND BSD-2-Clause AND BSD-3-Clause AND SSH-short AND LicenseRef-Fedora-Public-Domain",
      "name": "tmux",
      "release": "2.fc41",
      "summary": "A terminal multiplexer",
      "url": "https://tmux.github.io/",
      "version": "3.5a"
    }
  ]
}

Resolves: RHEL-60136
2025-01-30 08:00:12 +01:00
..
compose.go cloudapi: get rid of localSave check in local target 2025-01-24 15:26:15 +01:00
compose_test.go cloudapi: update expected image type test for gcp-rhui 2024-09-17 23:33:44 +02:00
depsolve.go cloudapi: Request depsolve from osbuild-worker 2025-01-23 11:39:53 -08:00
errors.go cloudapi: Request depsolve from osbuild-worker 2025-01-23 11:39:53 -08:00
errors_test.go cloudapi/v2: add test for errors 2024-06-25 17:27:28 +02:00
handler.go cloudapi: Hook up the /search/packages handler 2025-01-30 08:00:12 +01:00
imagerequest.go cloudapi: support worker server target artifact retrieval 2025-01-24 15:26:15 +01:00
imagerequest_test.go cloudapi/v2: support local upload target 2025-01-22 13:54:40 +01:00
middleware.go internal/auth: add TenantChannelMiddleware 2023-06-28 15:08:37 +02:00
openapi.v2.gen.go openapi: Add /search/packages route to the openapi schema 2025-01-30 08:00:12 +01:00
openapi.v2.yml openapi: Add /search/packages route to the openapi schema 2025-01-30 08:00:12 +01:00
search.go cloudapi: Hook up the /search/packages handler 2025-01-30 08:00:12 +01:00
server.go cloudapi: fix manifestSource.Serialize() 2025-01-29 18:03:11 +01:00
v2_internal_test.go cloudapi: Make sigmd5 in PackageMetadata optional 2025-01-23 11:39:53 -08:00
v2_koji_test.go CloudAPI: test /sboms endpoint for Koji composes 2024-09-20 17:02:09 +02:00
v2_multi_tenancy_test.go Port osbuild/images v0.33.0 with dot-notation to composer 2024-01-26 11:32:34 +01:00
v2_test.go v2_test: Add testing for cloudapi /depsolve/blueprint 2025-01-23 11:39:53 -08:00