Documentation
¶
Index ¶
- Constants
- type Manager
- func (m *Manager) CatalogExists() bool
- func (m *Manager) FetchCatalog() error
- func (m *Manager) GetCatalogPath() string
- func (m *Manager) GetCatalogVersion() (string, error)
- func (m *Manager) GetService(serviceName string) (*types.CatalogService, error)
- func (m *Manager) GetServiceVersion(serviceName, version string) (*types.ServiceSpec, error)
- func (m *Manager) ListServices() ([]*types.CatalogService, error)
- func (m *Manager) ListServicesByCategory(category string) ([]*types.CatalogService, error)
- func (m *Manager) LoadCatalog() (*types.ServiceCatalog, error)
- func (m *Manager) SearchServices(query string) ([]*types.CatalogService, error)
- func (m *Manager) SetCatalogURL(url string)
- func (m *Manager) ValidateCatalog() error
Constants ¶
const ( // DefaultCatalogURL is the URL to the catalog repository releases DefaultCatalogURL = "https://github.com/dokulabs/doku-catalog/releases/latest/download/catalog.toml" CatalogFileName = "catalog.toml" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager handles catalog operations
func NewManager ¶
NewManager creates a new catalog manager
func (*Manager) CatalogExists ¶
CatalogExists checks if the catalog file exists
func (*Manager) FetchCatalog ¶
FetchCatalog downloads the catalog from the configured URL
func (*Manager) GetCatalogPath ¶
GetCatalogPath returns the path to the local catalog file
func (*Manager) GetCatalogVersion ¶
GetCatalogVersion returns the version of the loaded catalog
func (*Manager) GetService ¶
func (m *Manager) GetService(serviceName string) (*types.CatalogService, error)
GetService retrieves a specific service from the catalog
func (*Manager) GetServiceVersion ¶
func (m *Manager) GetServiceVersion(serviceName, version string) (*types.ServiceSpec, error)
GetServiceVersion retrieves a specific version of a service
func (*Manager) ListServices ¶
func (m *Manager) ListServices() ([]*types.CatalogService, error)
ListServices returns a list of all available services
func (*Manager) ListServicesByCategory ¶
func (m *Manager) ListServicesByCategory(category string) ([]*types.CatalogService, error)
ListServicesByCategory returns services filtered by category
func (*Manager) LoadCatalog ¶
func (m *Manager) LoadCatalog() (*types.ServiceCatalog, error)
LoadCatalog loads and parses the catalog from disk
func (*Manager) SearchServices ¶
func (m *Manager) SearchServices(query string) ([]*types.CatalogService, error)
SearchServices searches for services by name, description, or tags
func (*Manager) SetCatalogURL ¶
SetCatalogURL sets a custom catalog URL (for testing or custom catalogs)
func (*Manager) ValidateCatalog ¶
ValidateCatalog validates the catalog structure