Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Girelas ¶
type Girelas struct {
// contains filtered or unexported fields
}
func NewGirelas ¶
NewGirelas initialize new instance of Girelas struct
func (*Girelas) DownloadAsset ¶
downloadAsset is request to the github api, to specified asset URL, it is impotant to set 'application/octet-stream' to the Accept header in response will be 302 forwarding to the real download link
func (*Girelas) FoundRelease ¶
func (g *Girelas) FoundRelease(releases []ReleaseData, tag string) (rel ReleaseData, err error)
FoundRelease a release by specified tag or pick latest
func (*Girelas) LoadReleases ¶
func (g *Girelas) LoadReleases() (releases []ReleaseData, err error)
loadReleases is request to the github api to specified repository and load all releases
type GithubRestErr ¶
type GithubRestErr struct {
Message string `json:"message"`
DocumentationURL string `json:"documentation_url"`
}
GithubRestErr describe REST API response error, it contains error message and url to the documentation
func (*GithubRestErr) Error ¶
func (e *GithubRestErr) Error() string
Click to show internal directories.
Click to hide internal directories.