github

package
v0.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Github

type Github struct {
	// contains filtered or unexported fields
}

func New

func New(url string) (*Github, error)

func (*Github) GetLatestRelease

func (g *Github) GetLatestRelease() (release *Release, err error)

func (*Github) GetRelease

func (g *Github) GetRelease(url string) (release *Release, err error)

func (*Github) GetReleaseByTag

func (g *Github) GetReleaseByTag(tag string) (release *Release, err error)

type Release

type Release struct {
	Url        string `json:"url"`
	Name       string `json:"name"`
	TagName    string `json:"tag_name"`
	CreatedAt  string `json:"created_at"`
	TarBallUrl string `json:"tarball_url"`
	ZipBallUrl string `json:"zipball_url"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL