#8 Finished the update I need to redo the call of these methods.

This commit is contained in:
Gorbunov Kirill Andreevich
2024-03-15 21:18:58 +03:00
parent f559bc86b8
commit e57e1ff82e
11 changed files with 152 additions and 57 deletions

View File

@@ -1,15 +1,28 @@
package gogs
import (
"context"
"git.unistack.org/unistack-org/pkgdash/internal/configcli"
"git.unistack.org/unistack-org/pkgdash/internal/modules"
)
type Gogs struct {
Token string
}
func NewGogs(t string) *Gogs {
func NewGogs(cfg configcli.Config) *Gogs {
return &Gogs{
Token: t,
Token: cfg.Source.Token,
}
}
func (g *Gogs) RequestOpen() {}
func (g *Gogs) RequestClose() {}
func (g *Gogs) RequestUpdate() {}
func (g *Gogs) RequestOpen(ctx context.Context, branch string, path string, mod modules.Update) error {
return nil
}
func (g *Gogs) RequestClose(ctx context.Context, cfg *configcli.Config, branch string, path string) error {
return nil
}
func (g *Gogs) RequestUpdate(ctx context.Context, cfg *configcli.Config, branch string, path string, mod modules.Update) error {
return nil
}