Files
decort-golang-sdk/pkg/cloudbroker/k8ci/models.go

115 lines
2.0 KiB
Go
Raw Normal View History

2022-12-22 17:56:47 +03:00
package k8ci
2023-09-18 14:13:55 +03:00
// Main information about K8CI in List
2022-12-22 17:56:47 +03:00
type ItemK8CI struct {
// Created time
CreatedTime uint64 `json:"createdTime"`
// Detailed information about K8CI
2023-09-18 14:13:55 +03:00
RecordK8CIList
2022-12-22 17:56:47 +03:00
}
// List K8CI
2023-07-07 12:40:03 +03:00
type ListK8CI struct {
//Data
Data []ItemK8CI `json:"data"`
// Entry count
EntryCount uint64 `json:"entryCount"`
}
2022-12-22 17:56:47 +03:00
2023-09-18 14:13:55 +03:00
// Detailed information about K8CI in List
type RecordK8CIList struct {
// Description
Description string `json:"desc"`
// Grid ID
GID uint64 `json:"gid"`
// GUID
GUID uint64 `json:"guid"`
// ID
ID uint64 `json:"id"`
// Load balancer image ID
LBImageID uint64 `json:"lbImageId"`
// Master image ID
MasterImageID uint64 `json:"masterImageId"`
// Max master count
MaxMasterCount uint64 `json:"maxMasterCount"`
// Max worker count
MaxWorkerCount uint64 `json:"maxWorkerCount"`
// Name
Name string `json:"name"`
// Shared with
SharedWith []uint64 `json:"sharedWith"`
// Status
Status string `json:"status"`
// Version
Version string `json:"version"`
// Worker image ID
WorkerImageID uint64 `json:"workerImageId"`
}
2025-08-29 12:51:25 +03:00
// Detailed information about K8CI
2022-12-22 17:56:47 +03:00
type RecordK8CI struct {
// Description
Description string `json:"desc"`
// Grid ID
GID uint64 `json:"gid"`
// GUID
GUID uint64 `json:"guid"`
// ID
ID uint64 `json:"id"`
// Load balancer image ID
LBImageID uint64 `json:"lbImageId"`
// Master image ID
MasterImageID uint64 `json:"masterImageId"`
2025-08-29 12:51:25 +03:00
// Master driver
MasterDriver string `json:"masterDriver"`
2022-12-22 17:56:47 +03:00
// Max master count
MaxMasterCount uint64 `json:"maxMasterCount"`
// Max worker count
MaxWorkerCount uint64 `json:"maxWorkerCount"`
// Milestones
Milestones uint64 `json:"milestones"`
// Name
Name string `json:"name"`
2023-09-18 14:13:55 +03:00
//NetworkPlugins
NetworkPlugins []string `json:"networkPlugins"`
2022-12-22 17:56:47 +03:00
// Shared with
2023-09-18 14:13:55 +03:00
SharedWith []uint64 `json:"sharedWith"`
2022-12-22 17:56:47 +03:00
// Status
Status string `json:"status"`
// Version
Version string `json:"version"`
// Worker image ID
WorkerImageID uint64 `json:"workerImageId"`
2025-08-29 12:51:25 +03:00
// Worker driver
WorkerDriver string `json:"workerDriver"`
2022-12-22 17:56:47 +03:00
}