transportv1alpha1

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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) GetDeviceVulnerabilities added in v1.2.0

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

(GET /vulnerabilities/devices/{name})

func (*TransportHandler) GetDeviceVulnerabilitySummary added in v1.2.0

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

(GET /vulnerabilities/devices/{name}/summary)

func (*TransportHandler) GetFleetVulnerabilities added in v1.2.0

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

(GET /vulnerabilities/fleets/{name})

func (*TransportHandler) GetFleetVulnerabilitySummary added in v1.2.0

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

(GET /vulnerabilities/fleets/{name}/summary)

func (*TransportHandler) GetVulnerabilityImpact added in v1.2.0

func (h *TransportHandler) GetVulnerabilityImpact(w http.ResponseWriter, r *http.Request, cveId string, params apiv1alpha1.GetVulnerabilityImpactParams)

(GET /vulnerabilities/cves/{cveId}/impact)

func (*TransportHandler) GetVulnerabilitySummary added in v1.2.0

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

(GET /vulnerabilities/summary)

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) ListVulnerabilities added in v1.2.0

(GET /vulnerabilities) NOTE: The vulnerability_findings table has no org_id. Org-wide queries derive digests from devices (devices.org_id = orgId AND devices.deleted_at IS NULL) so tenants only see CVEs for digests deployed on their devices.

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 an error 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