|
| 1 | +package schema |
| 2 | + |
| 3 | +type UUID struct { |
| 4 | + Type string `json:"type" default:"string"` |
| 5 | + Title string `json:"title" default:"UUID"` |
| 6 | + ReadOnly bool `json:"readOnly" default:"true"` |
| 7 | +} |
| 8 | + |
| 9 | +type AddressUUID struct { |
| 10 | + Type string `json:"type" default:"string"` |
| 11 | + Title string `json:"title" default:"Address UUID"` |
| 12 | + Min int `json:"minLength" default:"1"` |
| 13 | + Max int `json:"maxLength" default:"100"` |
| 14 | + Default string `json:"default" default:""` |
| 15 | + ReadOnly bool `json:"readOnly" default:"false"` |
| 16 | +} |
| 17 | + |
| 18 | +type Name struct { |
| 19 | + Type string `json:"type" default:"string"` |
| 20 | + Title string `json:"title" default:"Name"` |
| 21 | + Min int `json:"minLength" default:"2"` |
| 22 | + Max int `json:"maxLength" default:"200"` |
| 23 | + ReadOnly bool `json:"readOnly" default:"false"` |
| 24 | +} |
| 25 | + |
| 26 | +type Model struct { |
| 27 | + Type string `json:"type" default:"string"` |
| 28 | + Title string `json:"title" default:"Model"` |
| 29 | + Options []string `json:"enum" default:"[]"` |
| 30 | + EnumName []string `json:"enumNames" default:"[]"` |
| 31 | + Default string `json:"default" default:""` |
| 32 | + ReadOnly bool `json:"readOnly" default:"false"` |
| 33 | +} |
| 34 | + |
| 35 | +type Username struct { |
| 36 | + Type string `json:"type" default:"string"` |
| 37 | + Title string `json:"title" default:"Username"` |
| 38 | + Min int `json:"minLength" default:"2"` |
| 39 | + Max int `json:"maxLength" default:"50"` |
| 40 | + Default string `json:"default" default:"admin"` |
| 41 | + ReadOnly bool `json:"readOnly" default:"false"` |
| 42 | +} |
| 43 | + |
| 44 | +type Password struct { |
| 45 | + Type string `json:"type" default:"string"` |
| 46 | + Title string `json:"title" default:"Password"` |
| 47 | + ReadOnly bool `json:"readOnly" default:"false"` |
| 48 | +} |
| 49 | + |
| 50 | +type Token struct { |
| 51 | + Type string `json:"type" default:"string"` |
| 52 | + Title string `json:"title" default:"Token"` |
| 53 | + Min int `json:"minLength" default:"0"` |
| 54 | + Max int `json:"maxLength" default:"200"` |
| 55 | + ReadOnly bool `json:"readOnly" default:"false"` |
| 56 | +} |
| 57 | + |
| 58 | +type ExternalToken struct { |
| 59 | + Type string `json:"type" default:"string"` |
| 60 | + Title string `json:"title" default:"External Token"` |
| 61 | + Min int `json:"minLength" default:"0"` |
| 62 | + Max int `json:"maxLength" default:"200"` |
| 63 | + ReadOnly bool `json:"readOnly" default:"false"` |
| 64 | +} |
| 65 | + |
| 66 | +type Description struct { |
| 67 | + Type string `json:"type" default:"string"` |
| 68 | + Title string `json:"title" default:"Description"` |
| 69 | +} |
| 70 | + |
| 71 | +type Enable struct { |
| 72 | + Type string `json:"type" default:"boolean"` |
| 73 | + Title string `json:"title" default:"Enable"` |
| 74 | + Default bool `json:"default" default:"true"` |
| 75 | + ReadOnly bool `json:"readOnly" default:"false"` |
| 76 | +} |
| 77 | + |
| 78 | +type HistoryEnable struct { |
| 79 | + Type string `json:"type" default:"boolean"` |
| 80 | + Title string `json:"title" default:"History Enable"` |
| 81 | + Default bool `json:"default" default:"false"` |
| 82 | + ReadOnly bool `json:"readOnly" default:"false"` |
| 83 | +} |
| 84 | + |
| 85 | +type HistoryEnableDefaultTrue struct { |
| 86 | + Type string `json:"type" default:"boolean"` |
| 87 | + Title string `json:"title" default:"History Enable"` |
| 88 | + Default bool `json:"default" default:"true"` |
| 89 | + ReadOnly bool `json:"readOnly" default:"false"` |
| 90 | +} |
| 91 | + |
| 92 | +type Product struct { |
| 93 | + Type string `json:"type" default:"string"` |
| 94 | + Title string `json:"title" default:"Product"` |
| 95 | + Options []string `json:"enum" default:"[\"RubixCompute\",\"RubixCompute5\",\"RubixComputeIO\",\"Edge28\",\"Nuc\",\"Server\"]"` |
| 96 | + EnumName []string `json:"enumNames" default:"[\"RubixCompute\",\"RubixCompute5\",\"RubixComputeIO\",\"Edge28\",\"Nuc\",\"Server\"]"` |
| 97 | + Help string `json:"help" default:"a nube product type or a general linux server"` |
| 98 | + ReadOnly bool `json:"readOnly" default:"false"` |
| 99 | +} |
| 100 | + |
| 101 | +type Interface struct { |
| 102 | + Type string `json:"type" default:"string"` |
| 103 | + Title string `json:"title" default:"Network Interface"` |
| 104 | + Options []string `json:"enum" default:"[]"` |
| 105 | + Default string `json:"default" default:"eth0"` |
| 106 | + Help string `json:"help" default:"host network interface card, eg eth0"` |
| 107 | + ReadOnly bool `json:"readOnly" default:"false"` |
| 108 | +} |
| 109 | + |
| 110 | +type Netmask struct { |
| 111 | + Type string `json:"type" default:"string"` |
| 112 | + Title string `json:"title" default:"Netmask"` |
| 113 | + Default string `json:"default" default:"255.255.255.0"` |
| 114 | + Help string `json:"help" default:"ip netmask address eg, 255.255.255.0"` |
| 115 | + ReadOnly bool `json:"readOnly" default:"false"` |
| 116 | +} |
| 117 | + |
| 118 | +type SubNetMask struct { |
| 119 | + Type string `json:"type" default:"number"` |
| 120 | + Title string `json:"title" default:"Subnet Mask"` |
| 121 | + Min int `json:"minLength" default:"8"` |
| 122 | + Max int `json:"maxLength" default:"30"` |
| 123 | + Default int `json:"default" default:"24"` |
| 124 | + ReadOnly bool `json:"readOnly" default:"false"` |
| 125 | +} |
| 126 | + |
| 127 | +type Gateway struct { |
| 128 | + Type string `json:"type" default:"string"` |
| 129 | + Title string `json:"title" default:"Gateway"` |
| 130 | + Help string `json:"help" default:"ip gateway address eg, 192.168.15.1"` |
| 131 | + ReadOnly bool `json:"readOnly" default:"false"` |
| 132 | + Default string `json:"default" default:"192.168.15.1"` |
| 133 | +} |
| 134 | + |
| 135 | +type HTTPS struct { |
| 136 | + Type string `json:"type" default:"boolean"` |
| 137 | + Title string `json:"title" default:"Enable HTTPS"` |
| 138 | + ReadOnly bool `json:"readOnly" default:"false"` |
| 139 | +} |
| 140 | + |
| 141 | +type Port struct { |
| 142 | + Type string `json:"type" default:"number"` |
| 143 | + Title string `json:"title" default:"Port"` |
| 144 | + Min int `json:"minLength" default:"2"` |
| 145 | + Max int `json:"maxLength" default:"65535"` |
| 146 | + Default int `json:"default" default:"1660"` |
| 147 | + Help string `json:"help" default:"ip port, eg port 1660 192.168.15.10:1660"` |
| 148 | + ReadOnly bool `json:"readOnly" default:"false"` |
| 149 | +} |
| 150 | + |
| 151 | +type PluginName struct { |
| 152 | + Type string `json:"type" default:"string"` |
| 153 | + Title string `json:"title" default:"Plugin"` |
| 154 | + ReadOnly bool `json:"readOnly" default:"true"` |
| 155 | +} |
| 156 | + |
| 157 | +type OptionOneOf struct { |
| 158 | + Const string `json:"const"` |
| 159 | + Title string `json:"title"` |
| 160 | +} |
| 161 | + |
| 162 | +type OptionOneOfInt struct { |
| 163 | + Const int `json:"const"` |
| 164 | + Title string `json:"title"` |
| 165 | +} |
| 166 | + |
| 167 | +type DeviceType struct { |
| 168 | + Type string `json:"type" default:"string"` |
| 169 | + Title string `json:"title" default:"Device Type"` |
| 170 | + Options []string `json:"enum" default:"[\"cloud\",\"edge-28\",\"rubix-compute\",\"rubix-compute-vpn\",\"rubix-compute-lorawan\",\"rubix-compute-lorawan-vpn\",\"rubix-compute-io\"]"` |
| 171 | + Default string `json:"default" default:"rubix-compute"` |
| 172 | +} |
0 commit comments