Versions in this module Expand all Collapse all v1 v1.16.0 Mar 10, 2021 Changes in this version + const ReleaseVersion + func Asset(name string) ([]byte, error) + func AssetDir(name string) ([]string, error) + func AssetInfo(name string) (os.FileInfo, error) + func AssetNames() []string + func DownloadFile(ctx context.Context, client HTTPClient, url string) ([]byte, error) + func MustAsset(name string) []byte + func RestoreAsset(dir, name string) error + func RestoreAssets(dir, name string) error + type GitHubRepository struct + Client *github.Client + Owner string + Repo string + func (p *GitHubRepository) ReleaseFeed(ctx context.Context, sinceTag string) ([]Release, error) + type HTTPClient interface + Do func(req *http.Request) (*http.Response, error) + type ManifestEntry struct + Name string + Release string + Spec string + func LoadDefaultManifest() ([]ManifestEntry, error) + func LoadReleaseManifestFromURL(ctx context.Context, manifestURL string) ([]ManifestEntry, error) + func MustLoadDefaultManifest() []ManifestEntry + func ReadYAMLManifest(release string, r io.Reader) ([]ManifestEntry, error) + type Release struct + Description string + ManifestURL string + Tag string + func (r *Release) IsValid() bool + type ReleaseFeed []Release + func (f ReleaseFeed) Len() int + func (f ReleaseFeed) Less(i, j int) bool + func (f ReleaseFeed) Swap(i, j int) + func (f ReleaseFeed) Valid() ReleaseFeed + type ReleaseFeeder interface + ReleaseFeed func(ctx context.Context, sinceTag string) ([]Release, error)