registry

package
v0.2.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 26, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateRegistryHandler

type CreateRegistryHandler struct {
	// contains filtered or unexported fields
}

func NewCreateRegistryHandler

func NewCreateRegistryHandler(creator appregistry.Creator) *CreateRegistryHandler

func (*CreateRegistryHandler) Handle

func (h *CreateRegistryHandler) Handle(c *fiber.Ctx) error

Handle godoc @Summary Create a backend @Description Creates a new backend in a gateway. @Tags registries @Accept json @Produce json @Security BearerAuth @Param gateway_id path string true "Gateway id" format(uuid) @Param body body request.CreateRegistryRequest true "Registry to create" @Success 201 {object} response.RegistryResponse @Failure 400 {object} helpers.ErrorBody @Failure 401 {object} helpers.ErrorBody @Failure 404 {object} helpers.ErrorBody @Failure 409 {object} helpers.ErrorBody @Router /v1/gateways/{gateway_id}/registries [post]

type DeleteRegistryHandler

type DeleteRegistryHandler struct {
	// contains filtered or unexported fields
}

func NewDeleteRegistryHandler

func NewDeleteRegistryHandler(deleter appregistry.Deleter) *DeleteRegistryHandler

func (*DeleteRegistryHandler) Handle

func (h *DeleteRegistryHandler) Handle(c *fiber.Ctx) error

Handle godoc @Summary Delete a backend @Description Deletes a backend from a gateway. @Tags registries @Produce json @Security BearerAuth @Param gateway_id path string true "Gateway id" format(uuid) @Param id path string true "Registry id" format(uuid) @Success 204 "No Content" @Failure 400 {object} helpers.ErrorBody @Failure 401 {object} helpers.ErrorBody @Failure 404 {object} helpers.ErrorBody @Failure 409 {object} helpers.ErrorBody @Router /v1/gateways/{gateway_id}/registries/{id} [delete]

type GetRegistryHandler

type GetRegistryHandler struct {
	// contains filtered or unexported fields
}

func NewGetRegistryHandler

func NewGetRegistryHandler(finder appregistry.Finder) *GetRegistryHandler

func (*GetRegistryHandler) Handle

func (h *GetRegistryHandler) Handle(c *fiber.Ctx) error

Handle godoc @Summary Get a backend @Description Returns a single backend by id. @Tags registries @Produce json @Security BearerAuth @Param gateway_id path string true "Gateway id" format(uuid) @Param id path string true "Registry id" format(uuid) @Success 200 {object} response.RegistryResponse @Failure 400 {object} helpers.ErrorBody @Failure 401 {object} helpers.ErrorBody @Failure 404 {object} helpers.ErrorBody @Router /v1/gateways/{gateway_id}/registries/{id} [get]

type ListRegistryHandler

type ListRegistryHandler struct {
	// contains filtered or unexported fields
}

func NewListRegistryHandler

func NewListRegistryHandler(finder appregistry.Finder) *ListRegistryHandler

func (*ListRegistryHandler) Handle

func (h *ListRegistryHandler) Handle(c *fiber.Ctx) error

Handle godoc @Summary List registries @Description Returns a paginated list of registries in a gateway. @Tags registries @Produce json @Security BearerAuth @Param gateway_id path string true "Gateway id" format(uuid) @Param name query string false "Filter by name (substring match)" @Param page query int false "Page number (1-based)" @Param size query int false "Page size" @Success 200 {object} response.ListRegistryResponse @Failure 400 {object} helpers.ErrorBody @Failure 401 {object} helpers.ErrorBody @Router /v1/gateways/{gateway_id}/registries [get]

type ListRegistryToolsHandler

type ListRegistryToolsHandler struct {
	// contains filtered or unexported fields
}

func NewListRegistryToolsHandler

func NewListRegistryToolsHandler(introspector appmcp.Introspector) *ListRegistryToolsHandler

func (*ListRegistryToolsHandler) Handle

func (h *ListRegistryToolsHandler) Handle(c *fiber.Ctx) error

type ListRegistryToolsResponse

type ListRegistryToolsResponse struct {
	Tools []appmcp.Tool `json:"tools"`
}

type TestConnectionHandler

type TestConnectionHandler struct {
	// contains filtered or unexported fields
}

func NewTestConnectionHandler

func NewTestConnectionHandler(tester appregistry.ConnectionTester) *TestConnectionHandler

func (*TestConnectionHandler) Handle

func (h *TestConnectionHandler) Handle(c *fiber.Ctx) error

Handle godoc @Summary Test a backend connection @Description Validates connectivity and credentials against the provider's API with a lightweight, auth-only request. Test either a stored registry (registry_id) or an inline candidate configuration (provider + auth). Always returns 200; inspect "ok" and "stage" for the outcome. @Tags registries @Accept json @Produce json @Security BearerAuth @Param gateway_id path string true "Gateway id" format(uuid) @Param body body request.TestConnectionRequest true "Connection to test" @Success 200 {object} response.TestConnectionResponse @Failure 400 {object} helpers.ErrorBody @Failure 401 {object} helpers.ErrorBody @Failure 404 {object} helpers.ErrorBody @Failure 422 {object} helpers.ErrorBody @Router /v1/gateways/{gateway_id}/registries/test-connection [post]

type UpdateRegistryHandler

type UpdateRegistryHandler struct {
	// contains filtered or unexported fields
}

func NewUpdateRegistryHandler

func NewUpdateRegistryHandler(updater appregistry.Updater) *UpdateRegistryHandler

func (*UpdateRegistryHandler) Handle

func (h *UpdateRegistryHandler) Handle(c *fiber.Ctx) error

Handle godoc @Summary Update a backend @Description Updates an existing registry. @Tags registries @Accept json @Produce json @Security BearerAuth @Param gateway_id path string true "Gateway id" format(uuid) @Param id path string true "Registry id" format(uuid) @Param body body request.UpdateRegistryRequest true "Registry fields to update" @Success 200 {object} response.RegistryResponse @Failure 400 {object} helpers.ErrorBody @Failure 401 {object} helpers.ErrorBody @Failure 404 {object} helpers.ErrorBody @Failure 409 {object} helpers.ErrorBody @Router /v1/gateways/{gateway_id}/registries/{id} [put]

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL