db

package
v0.0.0-...-4607c25 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2015 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

View Source
const DefaultPath = "/usr/lib/gh-rel/bolt.db"
View Source
const WIP = "WIP"

Variables

This section is empty.

Functions

func AddProject

func AddProject(name, htmlURL string) error

func Close

func Close() error

func Open

func Open(dbPath string) (err error)

func SaveLatest

func SaveLatest(project, tag, url, etag string) error

func SaveNextRcRelease

func SaveNextRcRelease(project, tag, url, etag string) error

Types

type Project

type Project struct {
	Name              string
	HTMLURL           string
	LatestReleaseEtag string
	ReleasesEtag      string
	LatestRelease     Release
	NextPreRelease    Release
}

func ListProjects

func ListProjects() (projects []Project, err error)

func (Project) Owner

func (p Project) Owner() string

func (Project) Repo

func (p Project) Repo() string

type Release

type Release struct {
	Tag        string
	HTMLURL    string
	Prerelease bool
}

Jump to

Keyboard shortcuts

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