function

package
Version: v0.0.0-...-f1c27b4 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2020 License: MIT Imports: 10 Imported by: 0

README

pipeline-log function

GET - fetch pipeline log POST - store pipeline log

Backend: S3 (tested with Minio, AWS should work)

Example:

POST

curl http://192.168.0.26:31112/function/pipeline-log -d '{"repoPath": "alexellis/super-pancake", "commitSHA": "a3ef55c", "function": "slack-fn1", "source": "builder","data": "Line1\nLine2\n"}'

GET

curl "http://192.168.0.26:31112/function/pipeline-log?repoPath=alexellis/super-pancake&commitSHA=a3ef55c&function=slack-fn1" -i

TBD

Add verification of sender via HMAC secret

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handle

func Handle(req []byte) string

Handle sends the function logs to the pipeline to be exposed in the dashboard

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

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