db

package
v0.0.0-...-d8009f0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2015 License: MIT Imports: 5 Imported by: 0

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
}

Jump to

Keyboard shortcuts

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