golang的私有化定制自动更新插件
zanbin168
2023-05-17 1a8f08a07d8b74bfde0fa94ad863f74118b7be35
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)
}