Documentation
¶
Index ¶
- func App(_ context.Context, opts ...types.AppOptions) error
- type Client
- func (c *Client) FetchAllServers(baseURL string, opts FetchOptions) ([]types.ServerEntry, error)
- func (c *Client) FetchServer(baseURL string, name string, version string) (*types.ServerEntry, error)
- func (c *Client) FetchServerVersions(baseURL string, serverName string) ([]types.ServerEntry, error)
- func (c *Client) ValidateRegistry(baseURL string) error
- type FetchOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
Client handles communication with registries
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 ¶
ValidateRegistry checks if the URL hosts a valid registry
type FetchOptions ¶
FetchOptions configures the fetch behavior
Click to show internal directories.
Click to hide internal directories.