export.go

 1package gitea
 2
 3import (
 4	"context"
 5	"syscall"
 6	"time"
 7
 8	"github.com/pkg/errors"
 9
10	"github.com/MichaelMure/git-bug/bridge/core"
11	"github.com/MichaelMure/git-bug/cache"
12)
13
14var (
15	ErrMissingIdentityToken = errors.New("missing identity token")
16)
17
18// giteaExporter implement the Exporter interface
19type giteaExporter struct {
20}
21
22// Init .
23func (ge *giteaExporter) Init(_ context.Context, repo *cache.RepoCache, conf core.Configuration) error {
24	return syscall.ENOSYS
25}
26
27func (ge *giteaExporter) ExportAll(ctx context.Context, repo *cache.RepoCache, since time.Time) (<-chan core.ExportResult, error) {
28	return nil, syscall.ENOSYS
29}