routers

package
v0.0.0-...-fecf105 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2014 License: MIT Imports: 19 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Badge

func Badge(w http.ResponseWriter)

func BadgeEncode

func BadgeEncode(w io.Writer, message string) (err error)

func Doc

func Doc(ctx *middleware.Context)

func Download

func Download(ctx *middleware.Context)

func ForceRebuild

func ForceRebuild(tf TaskForm, ctx *middleware.Context)

func History

func History(ctx *middleware.Context, params martini.Params, req *http.Request)

func Home

func Home(ctx *middleware.Context)

func NewBuild

func NewBuild(rf RepositoryForm, ctx *middleware.Context)

func NewRepo

func NewRepo(rf RepoInfoForm, ctx *middleware.Context)

func NotFound

func NotFound(ctx *middleware.Context)

func PkgList

func PkgList(ctx *middleware.Context)

func Register

func Register(m *martini.ClassicMartini)

func Repo

func Repo(ctx *middleware.Context, params martini.Params, req *http.Request)

func Ruok

func Ruok() string
func Search(ctx *middleware.Context)

func TriggerBuildRepositoryById

func TriggerBuildRepositoryById(rid int64) (err error)

Types

type Branch

type Branch struct {
	Name       string `json:"name"`
	Sha        string `json:"sha"`
	Updated    string `json:"updated"`
	Os         string `json:"os"`
	Arch       string `json:"arch"`
	ZipBallUrl string `json:"zipball_url"`
}

type PackageItem

type PackageItem struct {
	Name        string   `json:"name"`
	Description string   `json:"description"`
	Branches    []Branch `json:"branches"`
}

type RepoInfoForm

type RepoInfoForm struct {
	Name string `form:"repo-name" binding:"required"`
}

type RepositoryForm

type RepositoryForm struct {
	Rid int64 `form:"rid" binding:"required"`
}

type TaskForm

type TaskForm struct {
	Tid int64 `form:"tid" binding:"required"`
}

Jump to

Keyboard shortcuts

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