Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/axelniklasson/go-planetlab
Go client library for accessing the PlanetLab API.
https://github.com/axelniklasson/go-planetlab
go planetlab planetlab-api
Last synced: about 2 months ago
JSON representation
Go client library for accessing the PlanetLab API.
- Host: GitHub
- URL: https://github.com/axelniklasson/go-planetlab
- Owner: axelniklasson
- License: mit
- Created: 2019-07-12T13:15:58.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-08-26T11:30:51.000Z (over 5 years ago)
- Last Synced: 2023-08-19T17:25:24.565Z (over 1 year ago)
- Topics: go, planetlab, planetlab-api
- Language: Go
- Size: 19.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-planetlab
[![Build Status](https://travis-ci.org/axelniklasson/go-planetlab.svg?branch=dev)](https://travis-ci.org/axelniklasson/go-planetlab)Go client library for accessing the [PlanetLab API](https://www.planet-lab.org/doc/plc_api). Note that this library only provides wrappers for the methods *not* requiring admin or PI access to the API. Furthermore, no delete methods have been implemented aside from `DeleteKey`, since deletion may have huge consequences.
## Usage
Simply import `"github.com/axelniklasson/go-planetlab/planetlab"`, instantiate an Auth object and start calling methods. Basic example can be found below.```golang
package mainimport (
"fmt"
"log""github.com/axelniklasson/go-planetlab/planetlab"
)func main() {
auth := planetlab.GetClientAuth("username", "password")
sliceFilter := struct{
Name string `xmlrpc:"name"`
}{"chalmersple_2018_10_29"}slices, err := planetlab.GetSlices(auth, sliceFilter)
if err != nil {
log.Fatal(err)
}// do something interesting with the found slices
}```