Giter VIP home page Giter VIP logo

borgbase-api-client's People

Contributors

jobroe avatar m3nu avatar p-rintz avatar ramblurr avatar schrnz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

borgbase-api-client's Issues

Cannot create repo with rsyncKeys

The REPO_ADD mutation wrapper does not allow a user to set rsyncKeys when creating a repo.

Would love for this to be possible.

This issue prevents usecases where repos need to be created with rsync access keys, and one wants to use the "create only" token role.

[Feature Request] A way to query for ssh key ID

Hi there,

Im currently writing an Ansible module to automate the creation of new repositories (and ssh keys).

Most everything is working, but currently I have no way to query for the ID of an ssh key that is already present in the borgbase account. So currently I cannot write the module to use existing keys, only create new ones and use those.

Thanks.

[Question] repo['id'] is changing at each "modification" of the repo configuration?

EDIT : It looks like the id shouldnt change... I am searching why i am having this behavior in my test.

Hi,

What i am doing :

In my unit test i am verifing the behavior of my app to know if it's creating/managing well my borgbase repos and keys.

I am currently cleaning/improving my tests, and just found something.

Behavior :

  • creating repo name my repo named client1. It replies path = XYZ.borgbase.com, name = client1, id = ABCD, appendOnly is empty
  • creating ssh key (with name client1 -> repo.name === ssh.name)
  • asking current repo configuration with name client1 -> appendOnly is empty, id = ABCD
  • mounting ssk.key = client1 on repo.name client1
  • asking current repo configuration with name client1 -> appendOnly is not empty, id = JJHGF, name = client1 path = xyz.borgbase.com

What I would like :

I am not stuck on this, but would like to be sure that it's a normal behavior that the 'id' is changing at each modification of the configuration, or if i am doing something wrong.

Thx

wrong types for repoAdd mutation

Currently, using the library to create repositories fails with the following error message:

DEBUG:root:{"errors":[{"message":"Variable \"name\" of type \"String\" used in position expecting type \"String!\".","locations":[{"line":3,"column":3},{"line":13,"column":13}]},{"message":"Variable \"region\" of type \"String\" used in position expecting type \"String!\".","locations":[{"line":9,"column":3},{"line":19,"column":15}]}]}

Steps to reproduce:

  1. check out borgbase/borgbase-api-client master
  2. $ export TOKEN=<insert your borg base API token here>
  3. $ python3 example-new-repo.py

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.