yay/pkg/vcs/mock.go

26 lines
386 B
Go
Raw Normal View History

package vcs
import (
"context"
"sync"
gosrc "github.com/Morganamilo/go-srcinfo"
)
type Mock struct{}
func (m *Mock) Update(ctx context.Context, pkgName string, sources []gosrc.ArchString, mux sync.Locker, wg *sync.WaitGroup) {
wg.Done()
}
func (m *Mock) Save() error {
return nil
}
func (m *Mock) RemovePackage(pkgs []string) {
}
func (m *Mock) Load() error {
return nil
}