Skip to content

[WIP] Go library for Clever Cloud v2 API

License

Notifications You must be signed in to change notification settings

dansmaculotte/clevercloud-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clevercloud-go

A Go library for interacting with Clever Cloud's API.

Installation

go get github.com/dansmaculotte/clevercloud-go/clevercloud

OAuth

Generate an accessToken and accessSecret with Clever Cloud CLI OAuth.

Usage

To properly request a resource you need a fresh new client instance:

import "github.com/dansmaculotte/clevercloud-go/clevercloud"

config := &clevercloud.Config{
    Token: "mytoken",
    Secret: "mysecret"
}
// or get config from $HOME/.config/clever-cloud
config = clevercloud.GetConfigFromUser()
// or get config from env with CLEVER_TOKEN and CLEVER_SECRET
config = clevercloud.GetConfigFromEnv()

client := clevercloud.NewClient(config, &http.Client{})

About

[WIP] Go library for Clever Cloud v2 API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages