Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadReleaseAsset ¶
func DownloadReleaseAsset(ctx context.Context, owner, repo string, filter AssetFilter, getDistFile func(asset *github.ReleaseAsset, release *github.RepositoryRelease) string) (asset *github.ReleaseAsset, exist bool, err error)
DownloadReleaseAsset 下载 release 资源
func GetRelease ¶
func GetRelease(ctx context.Context, owner, repo string, filter ReleaseFilter) (*github.RepositoryRelease, error)
GetRelease 查询 github release
Types ¶
type AssetFilter ¶
type AssetFilter func([]*github.RepositoryRelease) (asset *github.ReleaseAsset, release *github.RepositoryRelease)
type ReleaseFilter ¶
type ReleaseFilter func([]*github.RepositoryRelease) *github.RepositoryRelease
Click to show internal directories.
Click to hide internal directories.