Documentation ¶
Overview ¶
Package server Prunner REST API
A REST API for scheduling pipelines and managing jobs in prunner, an embedded task runner.
Schemes: http Host: localhost:8080 BasePath: / Version: 0.0.1 License: MIT http://opensource.org/licenses/MIT
swagger:meta
Index ¶
- func DevelopmentLogFormatter(logger log.Interface) *middleware.DefaultLogFormatter
- func GetLogEntry(r *http.Request) log.Interface
- func LogEntrySetField(r *http.Request, key string, value interface{})
- func LogEntrySetFields(r *http.Request, fields map[string]interface{})
- func NewServer(pRunner *prunner.PipelineRunner, outputStore taskctl.OutputStore, ...) *server
- func StructuredLogFormatter(logger log.Interface) middleware.LogFormatter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DevelopmentLogFormatter ¶
func DevelopmentLogFormatter(logger log.Interface) *middleware.DefaultLogFormatter
DevelopmentLogFormatter is a colored and compact middleware.LogFormatter for development use
func LogEntrySetField ¶
func LogEntrySetFields ¶
func NewServer ¶
func NewServer(pRunner *prunner.PipelineRunner, outputStore taskctl.OutputStore, logger func(http.Handler) http.Handler, tokenAuth *jwtauth.JWTAuth, enableProfiling bool) *server
func StructuredLogFormatter ¶
func StructuredLogFormatter(logger log.Interface) middleware.LogFormatter
StructuredLogFormatter is a middleware.LogFormatter with structured fields for production use
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.