transportv1alpha1

package
v1.1.0-rc6 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TransportHandler

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

func NewTransportHandler

func NewTransportHandler(serviceHandler service.Service, converter convertv1alpha1.Converter) *TransportHandler

func (*TransportHandler) CreateCatalog

func (h *TransportHandler) CreateCatalog(w http.ResponseWriter, r *http.Request)

(POST /api/v1/catalogs)

func (*TransportHandler) CreateCatalogItem

func (h *TransportHandler) CreateCatalogItem(w http.ResponseWriter, r *http.Request, name string)

(POST /api/v1/catalogs/{name}/items)

func (*TransportHandler) DeleteCatalog

func (h *TransportHandler) DeleteCatalog(w http.ResponseWriter, r *http.Request, name string)

(DELETE /api/v1/catalogs/{name})

func (*TransportHandler) DeleteCatalogItem

func (h *TransportHandler) DeleteCatalogItem(w http.ResponseWriter, r *http.Request, name string, item string)

(DELETE /api/v1/catalogs/{name}/items/{item})

func (*TransportHandler) GetCatalog

func (h *TransportHandler) GetCatalog(w http.ResponseWriter, r *http.Request, name string)

(GET /api/v1/catalogs/{name})

func (*TransportHandler) GetCatalogItem

func (h *TransportHandler) GetCatalogItem(w http.ResponseWriter, r *http.Request, name string, item string)

(GET /api/v1/catalogs/{name}/items/{item})

func (*TransportHandler) GetCatalogStatus

func (h *TransportHandler) GetCatalogStatus(w http.ResponseWriter, r *http.Request, name string)

(GET /api/v1/catalogs/{name}/status)

func (*TransportHandler) ListAllCatalogItems

(GET /api/v1/catalogitems)

func (*TransportHandler) ListCatalogItems

func (h *TransportHandler) ListCatalogItems(w http.ResponseWriter, r *http.Request, name string, params apiv1alpha1.ListCatalogItemsParams)

(GET /api/v1/catalogs/{name}/items)

func (*TransportHandler) ListCatalogs

(GET /api/v1/catalogs)

func (*TransportHandler) PatchCatalog

func (h *TransportHandler) PatchCatalog(w http.ResponseWriter, r *http.Request, name string)

(PATCH /api/v1/catalogs/{name})

func (*TransportHandler) PatchCatalogItem

func (h *TransportHandler) PatchCatalogItem(w http.ResponseWriter, r *http.Request, name string, itemName string)

(PATCH /api/v1/catalogs/{name}/items/{item})

func (*TransportHandler) PatchCatalogStatus

func (h *TransportHandler) PatchCatalogStatus(w http.ResponseWriter, r *http.Request, name string)

(PATCH /api/v1/catalogs/{name}/status)

func (*TransportHandler) ReplaceCatalog

func (h *TransportHandler) ReplaceCatalog(w http.ResponseWriter, r *http.Request, name string)

(PUT /api/v1/catalogs/{name})

func (*TransportHandler) ReplaceCatalogItem

func (h *TransportHandler) ReplaceCatalogItem(w http.ResponseWriter, r *http.Request, name string, itemName string)

(PUT /api/v1/catalogs/{name}/items/{item})

func (*TransportHandler) ReplaceCatalogStatus

func (h *TransportHandler) ReplaceCatalogStatus(w http.ResponseWriter, r *http.Request, name string)

(PUT /api/v1/catalogs/{name}/status)

func (*TransportHandler) SetParseFailureResponse

func (h *TransportHandler) SetParseFailureResponse(w http.ResponseWriter, err error)

SetParseFailureResponse writes a 500 response for JSON decode failures.

func (*TransportHandler) SetResponse

func (h *TransportHandler) SetResponse(w http.ResponseWriter, body any, status domain.Status)

SetResponse writes an HTTP response, converting domain.Status to the v1alpha1 API Status via the handler's converter. For 2xx responses, body is encoded; for non-2xx, the converted status is encoded.

Jump to

Keyboard shortcuts

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