Versions in this module Expand all Collapse all v1 v1.2.0-pre Jun 6, 2024 v1.1.6 Jan 14, 2025 v1.1.5 Aug 23, 2024 Changes in this version + var GitProviders = []string + func Exist(ctx context.Context, kv kvdb.KVDB, id string) bool + func ExistOn(ctx context.Context, kv kvdb.KVDB, provider, id string) bool + func Provider(ctx context.Context, kv kvdb.KVDB, id string) (string, error) + type Data map[string]interface + type GithubRepository struct + Id int + Key string + func (r *GithubRepository) Delete(ctx context.Context) (err error) + func (r *GithubRepository) Hooks(ctx context.Context) []hooks.Hook + func (r *GithubRepository) Register(ctx context.Context) (err error) + func (r *GithubRepository) Serialize() Data + type Repository interface + Delete func(ctx context.Context) error + Hooks func(ctx context.Context) []hooks.Hook + Register func(ctx context.Context) error + Serialize func() Data + func Fetch(ctx context.Context, kv kvdb.KVDB, id string) (Repository, error) + func New(kv kvdb.KVDB, data Data) (Repository, error) + type RepositoryCommon struct + KV kvdb.KVDB + Project string + Provider string