providercatalog

package
v1.261015.1 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2026 License: MPL-2.0 Imports: 6 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 Handler

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

Handler handles provider catalog HTTP requests

func NewHandler

func NewHandler(catalogManager *catalog.ProviderCatalogManager) *Handler

NewHandler creates a new provider catalog handler

func (*Handler) GetProviderCatalog

func (h *Handler) GetProviderCatalog(c *gin.Context)

GetProviderCatalog returns a single provider template by ID

func (*Handler) GetProviderCatalogVersion

func (h *Handler) GetProviderCatalogVersion(c *gin.Context)

GetProviderCatalogVersion returns the current template registry version

func (*Handler) ListProviderCatalogs

func (h *Handler) ListProviderCatalogs(c *gin.Context)

ListProviderCatalogs returns all provider templates

func (*Handler) RefreshProviderCatalogs

func (h *Handler) RefreshProviderCatalogs(c *gin.Context)

RefreshProviderCatalogs fetches the latest templates from GitHub

func (*Handler) RegisterRoutes added in v1.261002.1

func (h *Handler) RegisterRoutes(rt *module.Routes)

type ProviderCatalogResponse

type ProviderCatalogResponse struct {
	Success bool                                `json:"success"`
	Data    map[string]*catalog.ProviderCatalog `json:"data,omitempty"`
	Message string                              `json:"message,omitempty"`
	Version string                              `json:"version,omitempty"`
}

ProviderCatalogResponse represents the response for provider template endpoints

type SingleProviderCatalogResponse

type SingleProviderCatalogResponse struct {
	Success bool                     `json:"success"`
	Data    *catalog.ProviderCatalog `json:"data,omitempty"`
	Message string                   `json:"message,omitempty"`
}

SingleProviderCatalogResponse represents the response for a single template

Jump to

Keyboard shortcuts

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