Versions in this module Expand all Collapse all v0 v0.3.1 Aug 21, 2026 Changes in this version + func DetectContentType(path string) string + type Config struct + Filesystem *FilesystemConfig + GitHub *GitHubConfig + HTTP *HTTPConfig + Kind Kind + type FetchRequest struct + Config Config + PinnedRevision string + type FetchResult struct + Content []byte + ContentType string + Metadata map[string]string + SourceRevision string + type Fetcher interface + Fetch func(ctx context.Context, req FetchRequest) (FetchResult, error) + type FilesystemConfig struct + Path string + type GitHubConfig struct + Owner string + Path string + Ref string + Repo string + type HTTPConfig struct + Headers map[string]string + URL string + type Kind string + const KindFilesystem + const KindGitHub + const KindHTTP + type Registry struct + func NewRegistry() *Registry + func (r *Registry) Fetch(ctx context.Context, req FetchRequest) (FetchResult, error) + func (r *Registry) Register(k Kind, f Fetcher)