Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasRelease ¶ added in v0.2.0
func NewHTTPClient ¶ added in v0.1.15
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 ¶ added in v0.1.16
type Client ¶ added in v0.1.15
type Client struct {
// contains filtered or unexported fields
}
Client facilitates making HTTP requests to the GitHub API
func NewClient ¶ added in v0.1.15
func NewClient(opts ...ClientOption) *Client
NewClient initializes a Client
type ClientOption ¶ added in v0.1.15
type ClientOption = func(http.RoundTripper) http.RoundTripper
ClientOption represents an argument to NewClient
func ReplaceTripper ¶ added in v0.1.15
func ReplaceTripper(tr http.RoundTripper) ClientOption
ReplaceTripper substitutes the underlying RoundTripper with a custom one
type FilterFunc ¶ added in v0.1.15
type Option ¶ added in v0.1.15
type Option func(r *Release)
func WithFilter ¶ added in v0.1.15
func WithOverwrite ¶ added in v0.2.0
func WithOverwrite() Option
func WithVerbose ¶ added in v0.1.15
func WithVerbose() Option
func WithWorkdir ¶ added in v0.1.15
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 ¶ added in v0.1.15
type ReleaseResponse ¶ added in v0.1.16
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.