This commit is contained in:
asteam
2025-09-26 19:17:30 +03:00
parent 48e2b0f2f9
commit 1ccc37a104
1022 changed files with 6440 additions and 1688 deletions

View File

@@ -5,7 +5,7 @@ import (
"encoding/json"
"net/http"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v11/internal/validators"
)
// GetRequest struct to get list of stacks

View File

@@ -5,7 +5,7 @@ import (
"net/http"
"strconv"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v11/internal/validators"
)
// GetLogicalCoresCountRequest struct to get logical cores count by stack

View File

@@ -5,7 +5,7 @@ import (
"encoding/json"
"net/http"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v11/internal/validators"
)
// ListRequest struct to get list of stacks

View File

@@ -43,7 +43,7 @@ type InfoStack struct {
// ID
ID uint64 `json:"id"`
// List image IDs
Images []uint64 `json:"images"`
@@ -83,6 +83,9 @@ type ListStacks struct {
// Package
type Packages struct {
// LibGuestFSTools
LibGuestFSTools LibGuestFSTools `json:"libguestfs-tools"`
// LibvirtBin
LibvirtBin LibvirtBin `json:"libvirt-bin"`
@@ -105,6 +108,15 @@ type Packages struct {
Sanlock Sanlock `json:"sanlock"`
}
// LibGuestFSTools
type LibGuestFSTools struct {
// InstalledSize
InstalledSize string `json:"installed_size"`
// Version
Ver string `json:"ver"`
}
// LibvirtBin
type LibvirtBin struct {
// InstalledSize

View File

@@ -5,7 +5,7 @@ import (
"encoding/json"
"net/http"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v11/internal/validators"
)
// SetCpuAllocationRatioRequest struct to set CPU allocation ratio

View File

@@ -5,7 +5,7 @@ import (
"encoding/json"
"net/http"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v11/internal/validators"
)
// SetMemAllocationRatioRequest struct to set memory allocation ratio

View File

@@ -1,6 +1,6 @@
package stack
import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/interfaces"
import "repository.basistech.ru/BASIS/dynamix-golang-sdk/v11/interfaces"
// Structure for creating request to stack
type Stack struct {