Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHTTPClient ¶
func NewHTTPClient(opts ...ClientOption) *http.Client
NewHTTPClient initializes an http.Client
Types ¶
type Asset ¶
Asset represents GitHub release's asset. Basically this means one archive file attached in a release
type AssetsResponse ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client facilitates making HTTP requests to the GitHub API
type ClientOption ¶
type ClientOption = func(http.RoundTripper) http.RoundTripper
ClientOption represents an argument to NewClient
func ReplaceTripper ¶
func ReplaceTripper(tr http.RoundTripper) ClientOption
ReplaceTripper substitutes the underlying RoundTripper with a custom one
type FilterFunc ¶
type Option ¶
type Option func(r *Release)
func WithFilter ¶
func WithOverwrite ¶
func WithOverwrite() Option
func WithVerbose ¶
func WithVerbose() Option
func WithWorkdir ¶
type Release ¶
type Release struct {
Name string
Tag string
Assets Assets
// contains filtered or unexported fields
}
Release represents a GitHub release and its client A difference from Release is whether a client or not
func NewRelease ¶
type ReleaseResponse ¶
type ReleaseResponse struct {
TagName string `json:"tag_name"`
Assets []AssetsResponse `json:"assets"`
}
ReleaseResponse is a response of github release structure TODO: This may be better to become same one strucure as above
Click to show internal directories.
Click to hide internal directories.