Versions in this module Expand all Collapse all v0 v0.4.7 Oct 20, 2021 Changes in this version + const STATE_FAILED + const STATE_MISSED + const STATE_PASSED + func AdminAuthHandler(ctx echo.Context) error + func AdminAuthInstanceHandler(ctx echo.Context) error + func AdminAuthInstanceNewHandler(ctx echo.Context) error + func AdminInfoHandler(ctx echo.Context) error + func ApiTokenFromSession(u *core.User, ctx echo.Context) bool + func BuildStatus(s string) template.HTML + func CalcBuildDuration(b []core.Build) + func ChangeLoginToken(ctx echo.Context, u core.User, nextStep string, stepExtra string) bool + func CollectCookie(ctx echo.Context, name string) *http.Cookie + func CookieExists(ctx echo.Context, name string) bool + func GenerateLoginToken(try int) string + func GenerateRandomBytes(n int) ([]byte, error) + func GenerateRandomString(n int) (string, error) + func HTTPError(code int, ctx echo.Context) error + func NewAPIToken(l *core.LoginToken, ctx echo.Context, u core.User, name string) bool + func NewLoginToken(l *core.LoginToken, ctx echo.Context, u core.User, nextStep string, ...) bool + func ReadCookie(ctx echo.Context, name string) (string, error) + func RemoveCookie(ctx echo.Context, name string) + func RemoveLoginToken(ctx echo.Context) + func RenderTime(t time.Time) string + func SecretCheck(data io.Reader, secret string, theirs string, method string) bool + func UserFromIncompleteSession(u *core.User, ctx echo.Context) bool + func UserFromSession(u *core.User, ctx echo.Context) bool + func WebHookLogDetailHandler(ctx echo.Context) error + func WebHookLogHandler(ctx echo.Context) error + func WriteCookie(ctx echo.Context, name string, value string, expires time.Time) + type Server struct + func NewServer(c *core.Config, d *gorm.DB) Server + func (s *Server) Routes() + func (s *Server) Start()