2023-07-13 18:32:21 +03:00
2023-06-01 16:50:10 +03:00
2022-12-22 17:56:47 +03:00
2023-06-30 11:21:47 +03:00
2023-07-13 18:32:21 +03:00
2023-06-01 16:50:10 +03:00
2023-06-30 11:21:47 +03:00
2022-10-03 16:56:47 +03:00
2023-07-13 15:28:07 +03:00
2023-03-17 12:54:34 +03:00
2023-05-04 16:15:35 +03:00
2023-05-04 16:15:35 +03:00
2023-03-17 12:54:34 +03:00
2022-12-22 18:48:37 +03:00
2023-03-14 14:45:51 +03:00
2023-03-24 17:09:30 +03:00
2023-07-13 15:28:07 +03:00

Decort SDK

Decort SDK is a library, written in GO (Golang) for interact with the DECORT API.
The library contents structures and methods for requesting to an user (cloudapi) and admin (cloudbroker) groups of API.
Also the library have structures for responses.

Contents

Install

go get -u repository.basistech.ru/BASIS/decort-golang-sdk

API List

Examples

package main

import (
	"context"
	"fmt"
	"log"

	"repository.basistech.ru/BASIS/decort-golang-sdk/config"
	"repository.basistech.ru/BASIS/decort-golang-sdk/pkg/cloudapi/kvmx86"
)

func main() {
	cfg := config.Config{
		AppID:     "<APPID>",
		AppSecret: "<APPSECRET>",
		SSOURL:    "https://sso.digitalenergy.online",
		DecortURL: "https://mr4.digitalenergy.online",
		Retries:   5,
	}
	client := decort.New(cfg)
	req := kvmx86.CreateRequest{
		RGID:    123,
		Name:    "compute",
		CPU:     4,
		RAM:     4096,
		ImageID: 321,
	}

	res, err := client.KVMX86().Create(context.Background(), req)
	if err != nil {
		log.Fatal(err)
	}

	fmt.Println(res)
}

Examples2

Description
No description provided
Readme 4.8 MiB
Languages
Go 100%