Versions in this module Expand all Collapse all v0 v0.2.0 Apr 4, 2026 Changes in this version + type GitStore struct + func New(basePath string) (*GitStore, error) + func (g *GitStore) Archive(owner, slug, version string) (io.ReadCloser, error) + func (g *GitStore) BasePath() string + func (g *GitStore) Exists(owner, slug string) bool + func (g *GitStore) GetFile(owner, slug, version, path string) ([]byte, error) + func (g *GitStore) InitRepo(owner, slug string) error + func (g *GitStore) ListTags(owner, slug string) ([]string, error) + func (g *GitStore) Mirror(owner, slug, destPath string) error + func (g *GitStore) Publish(ctx context.Context, opts PublishOpts) (string, error) + func (g *GitStore) Rename(owner, oldSlug, newSlug string) error + func (g *GitStore) RepoPath(owner, slug string) string + type ImportOpts struct + OwnerID string + Slug string + TagPattern string + type ImportService struct + OnNewVersion func(ctx context.Context, owner, slug, version string, repoPath string) error + func NewImportService(gs *GitStore, cfg config.ImportConfig) *ImportService + func (i *ImportService) Enabled() bool + func (i *ImportService) HandleWebhook(ctx context.Context, event *WebhookEvent) error + func (i *ImportService) ImportFromURL(ctx context.Context, repoURL string, opts ImportOpts) error + func (i *ImportService) VerifySignature(payload []byte, signature string) bool + type MirrorService struct + func NewMirrorService(gs *GitStore, cfg config.MirrorConfig) *MirrorService + func (m *MirrorService) Enabled() bool + func (m *MirrorService) PushAll(ctx context.Context) error + func (m *MirrorService) PushMirror(ctx context.Context, owner, slug string) error + type PublishOpts struct + Author string + Email string + Files map[string][]byte + Message string + Owner string + Slug string + Tags []string + Version string + type WebhookEvent struct + Commit string + Provider string + Ref string + RepoURL string + Tag string + func ParseGitHubWebhook(payload []byte) (*WebhookEvent, error) + func ParseGitLabWebhook(payload []byte) (*WebhookEvent, error) + func ParseGiteaWebhook(payload []byte) (*WebhookEvent, error)