golang的私有化定制自动更新插件
zanbin168
2023-10-17 26056eac5c19ba705bffbbeaa42d926f556a9dd5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package goupdate
 
import "github.com/pkg/errors"
 
// TODO: the platform resolution should also be
// in the interface...
 
// Errors.
var (
    // ErrNotFound is returned from GetRelease if the release is not found.
    ErrNotFound = errors.New("release not found")
)
 
// Store is the interface used for listing and fetching releases.
type Store interface {
    GetRelease(version string) (*Release, error)
    LatestReleases() ([]*Release, error)
}