Skip to content

mindscratch/metronome-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

metronome-client

GoDoc

Metronome client library written in Go inspired by chronos-client.

This library targets the v1 API.

Issues affecting this library

It's worth noting that I've opened a couple issues that I've found with Metronome while implementing this library.

Examples

Look at the programs in the examples directory. An application exists for each v1 API endpoint, they also demonstrate how to use this library.

Example programs exist for most API calls. To run example, such as print_jobs, do the following:

$ go run examples/jobs/print_jobs.go
[
  {
    "id": "prod.example.app",
    "description": "Example Application",
    "labels": {
      "location": "olympus",
      "owner": "zeus"
    },
    "run": {
      "args": null,
      "artifacts": [],
      "cmd": "env | sort",
      "cpus": 0.1,
      "disk": 128,
      "docker": {
        "image": ""
      },
      "env": {
        "CONNECT": "direct",
        "MON": "test"
      },
      "maxLaunchDelay": 3600,
      "mem": 32,
      "placement": {
        "constraints": []
      },
      "user": "root",
      "restart": {
        "policy": "NEVER",
        "activeDeadlineSeconds": 0
      },
      "volumes": []
    }
  }

About

Metronome client library written in Go

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages