Documentation ¶
Index ¶
- func Untar(dst string, r io.Reader) ([]string, error)
- type GitHub
- func (s *GitHub) DetectGoReleaser()
- func (s *GitHub) Download(ctx context.Context, version, githubToken string) error
- func (s *GitHub) FindRelease(ctx context.Context) error
- func (s *GitHub) FindReleaseAsset() error
- func (s *GitHub) GetApp() string
- func (s *GitHub) GetID() string
- func (s *GitHub) GetOwner() string
- func (s *GitHub) GetReleaseAssets(ctx context.Context) error
- func (s *GitHub) GetRepo() string
- func (s *GitHub) GetSource() string
- func (s *GitHub) Run(ctx context.Context, version, githubToken string) error
- type GitLab
- type GoReleaser
- type Hashicorp
- type Homebrew
- type ISource
- type Options
- type Source
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GitHub ¶
type GitHub struct { Source Owner string Repo string Version string GoReleaser *GoReleaser Release *github.RepositoryRelease Assets []*github.ReleaseAsset MatchedAsset *github.ReleaseAsset // contains filtered or unexported fields }
func (*GitHub) DetectGoReleaser ¶
func (s *GitHub) DetectGoReleaser()
func (*GitHub) FindRelease ¶
FindRelease - query API to find the version being sought or return an error
func (*GitHub) FindReleaseAsset ¶
FindReleaseAsset - find the asset that matches the current OS and Arch, if multiple matches are found it will attempt to find the best match based on the suffix for the appropriate OS. If no match is found an error is returned.
type GoReleaser ¶
type ISource ¶
type Source ¶
func (*Source) ExtractInstall ¶
Click to show internal directories.
Click to hide internal directories.