registry

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2026 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func App

func App(_ context.Context, opts ...types.AppOptions) error

Types

type Client

type Client struct {
	HTTPClient *http.Client
}

Client handles communication with registries

func NewClient

func NewClient() *Client

NewClient creates a new registry client

func (*Client) FetchAllServers

func (c *Client) FetchAllServers(baseURL string, opts FetchOptions) ([]types.ServerEntry, error)

FetchAllServers fetches all servers from a registry with pagination

func (*Client) FetchServer

func (c *Client) FetchServer(baseURL string, name string, version string) (*types.ServerEntry, error)

FetchServer fetches a server by name and (optionally) version If version is empty, it will fetch the latest version

func (*Client) FetchServerVersions

func (c *Client) FetchServerVersions(baseURL string, serverName string) ([]types.ServerEntry, error)

FetchServerVersions fetches all versions for a specific server

func (*Client) ValidateRegistry

func (c *Client) ValidateRegistry(baseURL string) error

ValidateRegistry checks if the URL hosts a valid registry

type FetchOptions

type FetchOptions struct {
	ShowProgress bool
	Verbose      bool
}

FetchOptions configures the fetch behavior

Directories

Path Synopsis
api
router
Package router contains API routing logic
Package router contains API routing logic

Jump to

Keyboard shortcuts

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