-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added civoclient and fixed cluster update via meta.externalname
Signed-off-by: Vlad Fratila <[email protected]>
- Loading branch information
Showing
6 changed files
with
69 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Submodule build
updated
6 files
+12 −5 | makelib/common.mk | |
+35 −0 | makelib/controlplane.mk | |
+17 −2 | makelib/docs.mk | |
+1 −7 | makelib/golang.mk | |
+14 −1 | makelib/k8s_tools.mk | |
+45 −0 | makelib/local.xpkg.mk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package civoclient | ||
|
||
import ( | ||
"github.com/civo/civogo" | ||
) | ||
|
||
const ( | ||
APIURL = "https://api.civo.com" | ||
) | ||
|
||
// CivoAPIClient returns a civogo client using the current default API key | ||
func NewAPIClient(APIKey, region string) (*civogo.Client, error) { | ||
return civogo.NewClientWithURL(APIKey, APIURL, region) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters