Files
decort-golang-sdk/internal/validators/values.go

95 lines
3.0 KiB
Go
Raw Normal View History

2023-03-17 12:54:34 +03:00
package validators
var (
2025-04-09 11:21:07 +03:00
apiGroupValues = []string{"cloudapi", "cloudbroker", "system"}
2023-03-24 17:09:30 +03:00
accessTypeValues = []string{"R", "RCX", "ARCXDU"}
resTypesValues = []string{"compute", "vins", "k8s", "openshift", "lb", "flipgroup"}
protoValues = []string{"tcp", "udp"}
2023-03-17 12:54:34 +03:00
2025-12-08 16:16:35 +03:00
accountCUTypeValues = []string{"CU_M", "CU_C", "CU_D", "CU_DM", "CU_I", "gpu_units"}
2023-03-17 12:54:34 +03:00
2023-03-24 17:09:30 +03:00
bserviceModeValues = []string{"ABSOLUTE", "RELATIVE"}
2024-05-31 13:35:39 +03:00
computeTopologyValues = []string{"compute", "node"}
computePolicyValues = []string{"RECOMMENDED", "REQUIRED"}
computeModeValues = []string{"EQ", "EN", "ANY"}
computeDiskTypeValues = []string{"D", "B"}
computeNetTypeValues = []string{"EXTNET", "VINS"}
2025-07-15 17:39:18 +03:00
computex86NetTypeValues = []string{"EXTNET", "VINS", "VFNIC", "DPDK", "SDN", "EMPTY", "TRUNK"}
2024-05-31 13:35:39 +03:00
computeOrderValues = []string{"cdrom", "network", "hd"}
computeDataDisksValues = []string{"KEEP", "DETACH", "DESTROY"}
2023-03-24 17:09:30 +03:00
diskTypeValues = []string{"B", "T", "D"}
flipgroupClientTypeValues = []string{"compute", "vins"}
2025-11-14 17:38:59 +03:00
massCreateNetTypeValues = []string{"EXTNET", "VINS", "TRUNK"}
kvmx86NetTypeValues = []string{"EXTNET", "VINS", "EMPTY", "VFNIC", "DPDK", "SDN", "TRUNK"}
2023-03-24 17:09:30 +03:00
lbAlgorithmValues = []string{"roundrobin", "static-rr", "leastconn"}
rgDefNetValues = []string{"PRIVATE", "PUBLIC", "NONE"}
rgNetTypeValues = []string{"PUBLIC", "PRIVATE"}
2024-08-26 17:51:34 +03:00
vinsTypeValues = []string{"DHCP", "VIP", "EXCLUDED"}
2023-03-17 12:54:34 +03:00
imageBootTypeValues = []string{"uefi", "bios"}
2025-04-09 11:21:07 +03:00
imageTypeValues = []string{"windows", "linux", "unknown"}
2024-11-12 12:51:21 +03:00
imageArchitectureValues = []string{"X86_64"}
2023-03-24 17:09:30 +03:00
sepFieldTypeValues = []string{"int", "str", "bool", "list", "dict"}
2023-04-28 11:46:58 +03:00
2024-03-06 16:50:27 +03:00
networkPluginValues = []string{"flannel", "weavenet", "calico"}
2023-04-28 11:46:58 +03:00
strictLooseValues = []string{"strict", "loose"}
interfaceStateValues = []string{"on", "off"}
2024-04-16 14:26:06 +03:00
2025-07-15 17:39:18 +03:00
actionValues = []string{"is_powered", "power_on", "shutdown", "force_shutdown", "reboot"}
2024-04-16 14:26:06 +03:00
vmActionValues = []string{"stop", "move"}
2025-07-15 17:39:18 +03:00
computeFeaturesValues = []string{"hugepages", "numa", "cpupin", "vfnic", "dpdk", "changemac", "trunk"}
2024-04-16 14:26:06 +03:00
networkInterfaceNamingValues = []string{"eth", "ens"}
2024-05-31 13:35:39 +03:00
numaAffinityValues = []string{"none", "strict", "loose"}
2024-11-12 12:51:21 +03:00
txModelValues = []string{"iothread", "timer", "selected by hypervisor"}
ioEventFDValues = []string{"on", "off", "selected by hypervisor"}
eventIDxValues = []string{"on", "off", "selected by hypervisor"}
2024-11-22 12:09:50 +03:00
chipsetValues = []string{"i440fx", "Q35"}
2025-04-09 11:21:07 +03:00
loaderTypeValues = []string{"linux", "windows", "unknown"}
2025-12-29 14:16:28 +03:00
sepTypeValues = []string{"hitachi", "dorado", "tatlin", "shared", "local", "des", "ustor"}
2025-04-09 11:21:07 +03:00
languageValues = []string{"ru", "en"}
2025-07-15 17:39:18 +03:00
userProviders = []string{"bvs", "decs3o"}
deviceValues = []string{"primary", "secondary"}
2025-08-29 12:51:25 +03:00
securityGroupDirectionValues = []string{"inbound", "outbound"}
securityGroupEthertypeValues = []string{"IPv4", "IPv6"}
securityGroupProtocolValues = []string{"icmp", "tcp", "udp"}
2025-11-14 17:38:59 +03:00
addressPoolNetTypeValues = []string{"IPv4", "IPv6", "MAC"}
ipTypeValues = []string{"v4, v6"}
2025-12-23 17:39:58 +03:00
sepTechStatusValues = []string{"ENABLED", "DISABLED"}
2024-11-12 12:51:21 +03:00
)
const (
mtuMin = 1
mtuMax = 9216
2025-07-15 17:39:18 +03:00
trunkTagsMin = 1
trunkTagsMax = 4095
2023-03-17 12:54:34 +03:00
)