2022-12-16 18:23:44 +01:00
|
|
|
package vcs
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
|
|
|
gosrc "github.com/Morganamilo/go-srcinfo"
|
|
|
|
)
|
|
|
|
|
2022-12-18 17:37:15 +01:00
|
|
|
type Mock struct {
|
|
|
|
OriginsByPackage map[string]OriginInfoByURL
|
|
|
|
ToUpgradeReturn []string
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Mock) ToUpgrade(ctx context.Context) []string {
|
|
|
|
return m.ToUpgradeReturn
|
|
|
|
}
|
2022-12-16 18:23:44 +01:00
|
|
|
|
2022-12-18 17:37:15 +01:00
|
|
|
func (m *Mock) Update(ctx context.Context, pkgName string, sources []gosrc.ArchString) {
|
2022-12-16 18:23:44 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Mock) Save() error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Mock) RemovePackage(pkgs []string) {
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Mock) Load() error {
|
|
|
|
return nil
|
|
|
|
}
|