Add Device status const comments

Signed-off-by: Lionel Jouin <lionel.jouin@est.tech>
This commit is contained in:
Lionel Jouin 2024-12-29 12:29:58 +01:00
parent 1d13ff2a05
commit 5f4d646ea3
3 changed files with 42 additions and 12 deletions

View File

@ -989,10 +989,20 @@ type ResourceClaimTemplateList struct {
}
const (
AllocatedDeviceStatusMaxConditions int = 8
AllocatedDeviceStatusDataMaxLength int = OpaqueParametersMaxLength
NetworkDeviceDataMaxIPs int = 16
NetworkDeviceDataInterfaceNameMaxLength int = 256
// AllocatedDeviceStatusMaxConditions represents the maximum number of
// conditions in a device status.
AllocatedDeviceStatusMaxConditions int = 8
// AllocatedDeviceStatusDataMaxLength represents the maximum length of the
// raw data in the Data field in a device status.
AllocatedDeviceStatusDataMaxLength int = 10 * 1024
// NetworkDeviceDataMaxIPs represents the maximum number of IPs in the networkData
// field in a device status.
NetworkDeviceDataMaxIPs int = 16
// NetworkDeviceDataInterfaceNameMaxLength represents the maximum number of characters
// for the networkData.interfaceName field in a device status.
NetworkDeviceDataInterfaceNameMaxLength int = 256
// NetworkDeviceDataHardwareAddressMaxLength represents the maximum number of characters
// for the networkData.hardwareAddress field in a device status.
NetworkDeviceDataHardwareAddressMaxLength int = 128
)

View File

@ -1000,10 +1000,20 @@ type ResourceClaimTemplateList struct {
}
const (
AllocatedDeviceStatusMaxConditions int = 8
AllocatedDeviceStatusDataMaxLength int = OpaqueParametersMaxLength
NetworkDeviceDataMaxIPs int = 16
NetworkDeviceDataInterfaceNameMaxLength int = 256
// AllocatedDeviceStatusMaxConditions represents the maximum number of
// conditions in a device status.
AllocatedDeviceStatusMaxConditions int = 8
// AllocatedDeviceStatusDataMaxLength represents the maximum length of the
// raw data in the Data field in a device status.
AllocatedDeviceStatusDataMaxLength int = 10 * 1024
// NetworkDeviceDataMaxIPs represents the maximum number of IPs in the networkData
// field in a device status.
NetworkDeviceDataMaxIPs int = 16
// NetworkDeviceDataInterfaceNameMaxLength represents the maximum number of characters
// for the networkData.interfaceName field in a device status.
NetworkDeviceDataInterfaceNameMaxLength int = 256
// NetworkDeviceDataHardwareAddressMaxLength represents the maximum number of characters
// for the networkData.hardwareAddress field in a device status.
NetworkDeviceDataHardwareAddressMaxLength int = 128
)

View File

@ -1003,10 +1003,20 @@ type ResourceClaimTemplateList struct {
}
const (
AllocatedDeviceStatusMaxConditions int = 8
AllocatedDeviceStatusDataMaxLength int = OpaqueParametersMaxLength
NetworkDeviceDataMaxIPs int = 16
NetworkDeviceDataInterfaceNameMaxLength int = 256
// AllocatedDeviceStatusMaxConditions represents the maximum number of
// conditions in a device status.
AllocatedDeviceStatusMaxConditions int = 8
// AllocatedDeviceStatusDataMaxLength represents the maximum length of the
// raw data in the Data field in a device status.
AllocatedDeviceStatusDataMaxLength int = 10 * 1024
// NetworkDeviceDataMaxIPs represents the maximum number of IPs in the networkData
// field in a device status.
NetworkDeviceDataMaxIPs int = 16
// NetworkDeviceDataInterfaceNameMaxLength represents the maximum number of characters
// for the networkData.interfaceName field in a device status.
NetworkDeviceDataInterfaceNameMaxLength int = 256
// NetworkDeviceDataHardwareAddressMaxLength represents the maximum number of characters
// for the networkData.hardwareAddress field in a device status.
NetworkDeviceDataHardwareAddressMaxLength int = 128
)