density

command module
v0.0.0-...-c57eb44 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2021 License: BSD-3-Clause Imports: 1 Imported by: 0

README

Density

Schedule tasks.

REST

Admin

Listen localhost

GET / Splash page

GET /metrics Prometheus endpoint

GET /version Version

API

Auth use a JWT token, similar to Hashicorp Vault : https://docs.gitlab.com/ee/ci/examples/authenticating-with-hashicorp-vault/

:id is an UUID

owner is [a-zA-Z-0-9_\-]+ and can't look like an UUID.

GET /api/task all schedules for admin, my own schedule for a user

GET /api/task/:owner schedules of this owner

DELETE /api/task/:id

PUT /api/task/:id

POST /api/task owner is implicit, or explicit if admin creates the schedule.

Compose hacked format
x-batch:
    start:
    max_wait_time:
    max_execution_time:
    retry:
    every:
    cron:
Architecture

task.Task is an abstract task to schedule.

Main task implementation is a docker-compose.yml.

task.Action is an abstract for a running task.

scheduler.Scheduler consumes task.Task.

License

3 terms BSD Licence. © 2020 Mathieu Lecarme

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
handlers
api
input
run

Jump to

Keyboard shortcuts

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