Documentation
¶
Index ¶
- type Client
- type Github
- func (g *Github) DownloadFile(file, url string, progress api.Progress) error
- func (g *Github) GetBranch(branch string) (string, string, error)
- func (g *Github) GetContentFile(branch, file string) (string, error)
- func (g *Github) GetRelease(release string) (string, string, error)
- func (g *Github) GetTag(tag string) (string, string, error)
- func (g *Github) Request(method, url string) (string, error)
- func (g *Github) Termination()
- type Gitlab
- func (g *Gitlab) DownloadFile(file, url string, progress api.Progress) error
- func (g *Gitlab) GetBranch(branch string) (string, string, error)
- func (g *Gitlab) GetContentFile(branch, file string) (string, error)
- func (g *Gitlab) GetRelease(release string) (string, string, error)
- func (g *Gitlab) GetTag(tag string) (string, string, error)
- func (g *Gitlab) Request(method, url string) (string, error)
- func (g *Gitlab) Termination()
- type WriteCounter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
Request(method, url string) (string, error)
GetContentFile(branch, file string) (string, error)
GetRelease(release string) (string, string, error)
GetTag(tag string) (string, string, error)
GetBranch(branch string) (string, string, error)
DownloadFile(file, url string, progress api.Progress) error
Termination()
}
func GithubClient ¶
func GitlabClient ¶
type Github ¶
func (*Github) DownloadFile ¶
func (*Github) GetContentFile ¶
func (*Github) Termination ¶
func (g *Github) Termination()
type Gitlab ¶
func (*Gitlab) DownloadFile ¶
func (*Gitlab) GetContentFile ¶
func (*Gitlab) Termination ¶
func (g *Gitlab) Termination()
Click to show internal directories.
Click to hide internal directories.