GithubHelp home page GithubHelp logo

francois2metz / steampipe-plugin-scalingo Goto Github PK

View Code? Open in Web Editor NEW
12.0 5.0 5.0 1.36 MB

Steampipe plugin to query your Scalingo apps, addons and more

Home Page: https://hub.steampipe.io/plugins/francois2metz/scalingo

License: Apache License 2.0

Go 99.36% Makefile 0.15% PLSQL 0.49%
steampipe steampipe-plugin scalingo

steampipe-plugin-scalingo's Introduction

Steampipe + Scalingo

Scalingo plugin for Steampipe

Use SQL to query infrastructure including applications and addons from Scalingo.

Quick start

Install the plugin with Steampipe:

steampipe plugin install francois2metz/scalingo

Development

To build the plugin and install it in your .steampipe directory

make

Copy the default config file:

cp config/scalingo.spc ~/.steampipe/config/scalingo.spc

License

Apache 2

steampipe-plugin-scalingo's People

Contributors

dboeke avatar dependabot[bot] avatar e-gineer avatar emeric-martineau avatar francois2metz avatar michaelburgess avatar misraved avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

steampipe-plugin-scalingo's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Pending Status Checks

These updates await pending status checks. To force their creation now, click the checkbox below.

  • Update golangci/golangci-lint-action action to v6

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/ci.yml
  • actions/checkout v4
  • actions/setup-go v5
  • golangci/golangci-lint-action v5
.github/workflows/release.yml
  • francois2metz/steampipe-plugin-build-push-action v0
gomod
go.mod
  • go 1.21.0
  • go 1.21.3
  • github.com/Scalingo/go-scalingo/v7 v7.0.0
  • github.com/turbot/steampipe-plugin-sdk/v5 v5.10.0
  • gopkg.in/errgo.v1 v1.0.1

  • Check this box to trigger a request for Renovate to run again on this repository

Suggested changes for publishing to hub.steampipe.io

Hi @francois2metz ... fantastic work on this plugin! It has come together well and worked great for me on first setup / try :-)

Here are some suggestions for changes before we publish it to the Steampipe Hub site. Happy to discuss if you have any questions.

Recommended changes:

  • Table and column descriptions should be formal sentences including a period at the end. For example, Type of the event. (not type of the event).
  • Whitespace in config/scalingo.spc should be cleaned up / aligned.
  • Example token format should be updated to look like an actual token (clearer for the user).
  • Most plugins will cache the connection object, avoiding extra setup time etc on each query. Depending on the API, many clients perform extra work (and even requests) during connection setup. Please see existing plugins for examples if you wish to do this, the plugin SDK provides helpers.
  • Use FromQual as an easy way to get passed in app_name value (instead of a custom transform).
  • If the events table gets large, then adding support for limit checks can be helpful to improve performance and make it easier to run small sample queries (example).

Questions / surprising outcomes / should be fixed:

  • Why does region list only return one region?

Hope this helps!

Problème de récupération des stacks sur secnum

Scalingo renvoie une liste de stack différente si on est sur osc-secnum-fr1 ou osc-secnum.

ex :
osc-fr1 :

curl -H 'Accept: application/json' -H "Authorization: Bearer $BEARER_TOKEN" -H 'Content-Type: application/json' -X GET $SCALINGO_API_URL/features/stacks |jq .

{
  "stacks": [
    {
      "id": "st-cf797d51-f8ad-45a3-a270-ed3890819fa1",
      "name": "scalingo-20",
      "base_image": "scalingo/scalingo-20:v4",
      "default": true,
      "created_at": "2021-10-07T08:32:45.492Z",
      "description": "Scalingo stack based on Ubuntu LTS 20.04",
      "deprecated_at": null
    },
    {
      "id": "st-65c117b1-3ae0-4834-9822-93d417ea52ff",
      "name": "scalingo-18",
      "base_image": "scalingo/scalingo-18:v18",
      "default": false,
      "created_at": "2020-02-17T15:03:40.051Z",
      "description": "Stack based on ubuntu 18.04 LTS",
      "deprecated_at": null
    }
  ]
}

Secnum :

curl -H 'Accept: application/json' -H "Authorization: Bearer $BEARER_TOKEN" -H 'Content-Type: application/json' -X GET https://api.osc-fr1.scalingo.com/v1/features/stacks |jq .

{
  "stacks": [
    {
      "id": "st-528ed067-917a-4931-875a-40b7500c724a",
      "name": "scalingo-20",
      "base_image": "scalingo/scalingo-20:v4",
      "default": true,
      "created_at": "2021-10-07T08:30:34.804Z",
      "description": "Scalingo stack based on Ubuntu LTS 20.04",
      "deprecated_at": null
    },
    {
      "id": "st-1c9e26ad-e3ec-406d-a88e-1d8745b50d2f",
      "name": "scalingo-18",
      "base_image": "scalingo/scalingo-18:v18",
      "default": false,
      "created_at": "2019-04-25T15:31:29.403Z",
      "description": "Runtime stack based on Ubuntu 18.04",
      "deprecated_at": null
    },
    {
      "id": "st-46d351d0-8b81-4f98-a233-db1eeeba894c",
      "name": "scalingo-14",
      "base_image": "scalingo/scalingo-14:v33",
      "default": false,
      "created_at": "2019-03-19T13:06:10.583Z",
      "description": "First image on Scalingo based on Ubuntu 14.04",
      "deprecated_at": "2020-01-01"
    }
  ]
}

Le plugin renvoie uniquement les stacks présentes sur la région osc-fr1 et ne prends pas en compte secnum ce qui est problématique.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.