Fetcher defines the interface for fetching catalog data.
| 35 | |
| 36 | // Fetcher defines the interface for fetching catalog data. |
| 37 | type Fetcher interface { |
| 38 | // Fetch retrieves the catalog from the given URL. |
| 39 | Fetch(ctx context.Context, catalogURL string) ([]byte, error) |
| 40 | // FetchContent retrieves content from a URL (for templates/constraints). |
| 41 | FetchContent(ctx context.Context, contentURL string) ([]byte, error) |
| 42 | // SetInsecure allows fetching over plain HTTP (not recommended for production). |
| 43 | SetInsecure(insecure bool) |
| 44 | } |
| 45 | |
| 46 | // HTTPFetcher implements Fetcher using HTTP and file:// protocols. |
| 47 | // HTTPFetcher is safe for concurrent use after creation. |
no outgoing calls
no test coverage detected
searching dependent graphs…