Versions in this module Expand all Collapse all v0 v0.1.3 May 27, 2026 Changes in this version + const MethodAuto + const MethodGit + const MethodTarball + var ErrArchiveTooLarge = errors.New("archive too large") + var ErrRateLimited = errors.New("github api rate limited") + var ErrUnexpectedArchiveLayout = errors.New("unexpected archive layout") + var ErrUnsafeArchive = errors.New("unsafe archive entry") + var ErrVersionNotFound = errors.New("wordpress version not found upstream") + func EnsureRepo(ctx context.Context, opts DownloadOptions) (repoPath, version string, err error) + type DownloadOptions struct + APIBaseURL string + CacheDir string + GitRepoURL string + MaxExtractedB int64 + MaxRetries int + Method string + Refresh bool + TarballBaseURL string + Token string + UserAgent string + Version string + type Option func(*WPGithubSource) + func WithRef(ref string) Option + type WPGithubSource struct + func New(repoPath string, opts ...Option) *WPGithubSource + func (s *WPGithubSource) DetectWrapper(method *source.Method) (bool, string, string) + func (s *WPGithubSource) DiscoverEntities(ctx context.Context, fetch source.FetchFunc) ([]string, error) + func (s *WPGithubSource) ID() string + func (s *WPGithubSource) Meta() source.LibraryMeta + func (s *WPGithubSource) ParseEntity(ctx context.Context, url string, body []byte) (*source.Entity, []string, error) + func (s *WPGithubSource) ParseMethod(ctx context.Context, url string, body []byte) (*source.Method, error) + func (s *WPGithubSource) ParseSourceCode(url string, body []byte) (string, error) + func (s *WPGithubSource) ResolveWrapperURL(targetName, targetKind, entitySlug string) string