Documentation ¶
Index ¶
- Constants
- Variables
- func ActivityHandler(ctx context.Context, rw http.ResponseWriter, r *http.Request)
- func ActivityJSONHandler(ctx context.Context, rw http.ResponseWriter, r *http.Request)
- func AdminGetHandler(ctx context.Context, rw http.ResponseWriter, r *http.Request)
- func AdminPostHandler(ctx context.Context, rw http.ResponseWriter, r *http.Request)
- func Authenticated(r *http.Request) string
- func BuildGetHandler(ctx context.Context, rw http.ResponseWriter, r *http.Request)
- func BuildGetJSONHandler(ctx context.Context, rw http.ResponseWriter, r *http.Request)
- func BuildPostHandler(ctx context.Context, rw http.ResponseWriter, r *http.Request)
- func IntegrationHandler(ctx context.Context, rw http.ResponseWriter, r *http.Request)
- func ListsAPIHandler(ctx context.Context, rw http.ResponseWriter, r *http.Request)
- func ListsHandler(ctx context.Context, rw http.ResponseWriter, r *http.Request)
- func MainHandler(ctx context.Context, rw http.ResponseWriter, r *http.Request)
- func MustAuthenticate(r *http.Request) string
- func PanicMiddleware(inner goji.Handler) goji.Handler
- func PermAbortCheck(r *http.Request, perm string)
- func PermCheck(r *http.Request, perm string) bool
- func RedirectHandler(rw http.ResponseWriter, r *http.Request)
- func StaticHandler(ctx context.Context, rw http.ResponseWriter, r *http.Request)
- func UserLoginHandler(ctx context.Context, rw http.ResponseWriter, r *http.Request)
- func UserLogoutHandler(ctx context.Context, rw http.ResponseWriter, r *http.Request)
- type PanicHandler
- func (p *PanicHandler) Err400(ctx context.Context, rw http.ResponseWriter, r *http.Request)
- func (p *PanicHandler) Err403(ctx context.Context, rw http.ResponseWriter, r *http.Request)
- func (p *PanicHandler) Err404(ctx context.Context, rw http.ResponseWriter, r *http.Request)
- func (p *PanicHandler) Err405(ctx context.Context, rw http.ResponseWriter, r *http.Request)
- func (p *PanicHandler) Err500(ex interface{}, ctx context.Context, rw http.ResponseWriter, r *http.Request)
- func (p *PanicHandler) Err550(ctx context.Context, rw http.ResponseWriter, r *http.Request)
- func (p *PanicHandler) ServeHTTPC(ex interface{}, ctx context.Context, rw http.ResponseWriter, r *http.Request)
Constants ¶
const ( PermissionAdmin = "kahinah.admin" PermissionQA = "kahinah.qa" PermissionWhitelist = "kahinah.whitelist" )
const (
CASReferrer = "_cas_refer"
)
Variables ¶
var ( ErrNotFound = errors.New("kahinah: path not found") ErrMethodNotAllowed = errors.New("kahinah: method not allowed") ErrBadRequest = errors.New("kahinah: bad request") ErrForbidden = errors.New("kahinah: forbidden") ErrPermission = errors.New("kahinah: permission error") )
var ( // ErrNoCurrentStage signals that StageCurrent doesn't exist for some reason. ErrNoCurrentStage = errors.New("kahinah: couldn't find the current stage (yikes!)") )
Functions ¶
func ActivityHandler ¶
func ActivityJSONHandler ¶
func AdminGetHandler ¶
AdminGetHandler controls the central dashboard for Kahinah.
func AdminPostHandler ¶
AdminPostHandler manipulates the central dashboard for kahinah
func Authenticated ¶
func BuildGetHandler ¶
BuildGetHandler displays build information for a specific build
func BuildGetJSONHandler ¶
BuildGetJSONHandler displays build information in JSON for a specific build.
func BuildPostHandler ¶
BuildPostHandler handles post actions that occur to the current active stage.
func IntegrationHandler ¶
IntegrationHandler handles webhooks to integration handlers in the integration package by calling their hook function with the request.
func ListsAPIHandler ¶
ListsAPIHandler shows the collection of lists, with filters, paginated, JSON'ified.
func ListsHandler ¶
ListsHandler shows the collection of lists (HTML).
func MainHandler ¶
MainHandler shows the main page.
func MustAuthenticate ¶
func PanicMiddleware ¶
func PanicMiddleware(inner goji.Handler) goji.Handler
func PermAbortCheck ¶
func RedirectHandler ¶
func RedirectHandler(rw http.ResponseWriter, r *http.Request)
RedirectHandler redirects paths without a trailing slash to those with a trailing slash...
func StaticHandler ¶
func UserLoginHandler ¶
func UserLogoutHandler ¶
Types ¶
type PanicHandler ¶
func (*PanicHandler) Err400 ¶
func (p *PanicHandler) Err400(ctx context.Context, rw http.ResponseWriter, r *http.Request)
func (*PanicHandler) Err403 ¶
func (p *PanicHandler) Err403(ctx context.Context, rw http.ResponseWriter, r *http.Request)
func (*PanicHandler) Err404 ¶
func (p *PanicHandler) Err404(ctx context.Context, rw http.ResponseWriter, r *http.Request)
func (*PanicHandler) Err405 ¶
func (p *PanicHandler) Err405(ctx context.Context, rw http.ResponseWriter, r *http.Request)
func (*PanicHandler) Err500 ¶
func (p *PanicHandler) Err500(ex interface{}, ctx context.Context, rw http.ResponseWriter, r *http.Request)
func (*PanicHandler) Err550 ¶
func (p *PanicHandler) Err550(ctx context.Context, rw http.ResponseWriter, r *http.Request)
func (*PanicHandler) ServeHTTPC ¶
func (p *PanicHandler) ServeHTTPC(ex interface{}, ctx context.Context, rw http.ResponseWriter, r *http.Request)