Documentation ¶
Index ¶
- Constants
- func FloatToStr(num *float64) string
- func GetDeviceCondition(status iotv1alpha1.DeviceStatus, condType iotv1alpha1.DeviceConditionType) *iotv1alpha1.DeviceCondition
- func GetDeviceServiceCondition(status iotv1alpha1.DeviceServiceStatus, ...) *iotv1alpha1.DeviceServiceCondition
- func GetEdgeDeviceName(d *iotv1alpha1.Device, label string) string
- func GetEdgeDeviceProfileName(dp *iotv1alpha1.DeviceProfile, label string) string
- func GetEdgeDeviceServiceName(ds *iotv1alpha1.DeviceService, label string) string
- func GetNodePool(cfg *rest.Config) (string, error)
- func IntToStr(num *int64) string
- func IsInStringLst(strLst []string, str string) bool
- func NewDeviceCondition(condType iotv1alpha1.DeviceConditionType, status corev1.ConditionStatus, ...) *iotv1alpha1.DeviceCondition
- func NewDeviceServiceCondition(condType iotv1alpha1.DeviceServiceConditionType, status corev1.ConditionStatus, ...) *iotv1alpha1.DeviceServiceCondition
- func RegisterFieldIndexers(fi client.FieldIndexer) error
- func SetDeviceCondition(status *iotv1alpha1.DeviceStatus, condition *iotv1alpha1.DeviceCondition)
- func SetDeviceServiceCondition(status *iotv1alpha1.DeviceServiceStatus, ...)
- func StrToFloat(str string) *float64
- func StrToInt(str string) *int64
- func StrToUint(str string) *uint64
- func UintToStr(num *uint64) string
Constants ¶
const ( PODHOSTNAME = "/etc/hostname" PODNAMESPACE = "/var/run/secrets/kubernetes.io/serviceaccount/namespace" )
const (
IndexerPathForNodepool = "spec.nodePool"
)
Variables ¶
This section is empty.
Functions ¶
func FloatToStr ¶
func GetDeviceCondition ¶
func GetDeviceCondition(status iotv1alpha1.DeviceStatus, condType iotv1alpha1.DeviceConditionType) *iotv1alpha1.DeviceCondition
GetDeviceCondition returns the condition with the provided type.
func GetDeviceServiceCondition ¶
func GetDeviceServiceCondition(status iotv1alpha1.DeviceServiceStatus, condType iotv1alpha1.DeviceServiceConditionType) *iotv1alpha1.DeviceServiceCondition
GetDeviceServiceCondition returns the condition with the provided type.
func GetEdgeDeviceName ¶
func GetEdgeDeviceName(d *iotv1alpha1.Device, label string) string
func GetEdgeDeviceProfileName ¶
func GetEdgeDeviceProfileName(dp *iotv1alpha1.DeviceProfile, label string) string
func GetEdgeDeviceServiceName ¶
func GetEdgeDeviceServiceName(ds *iotv1alpha1.DeviceService, label string) string
func GetNodePool ¶
GetNodePool get nodepool where yurt-iot-dock run
func IsInStringLst ¶
IsInStringLst checks if 'str' is in the 'strLst'
func NewDeviceCondition ¶
func NewDeviceCondition(condType iotv1alpha1.DeviceConditionType, status corev1.ConditionStatus, reason, message string) *iotv1alpha1.DeviceCondition
NewDeviceCondition creates a new Device condition.
func NewDeviceServiceCondition ¶
func NewDeviceServiceCondition(condType iotv1alpha1.DeviceServiceConditionType, status corev1.ConditionStatus, reason, message string) *iotv1alpha1.DeviceServiceCondition
NewDeviceServiceCondition creates a new DeviceService condition.
func RegisterFieldIndexers ¶
func RegisterFieldIndexers(fi client.FieldIndexer) error
func SetDeviceCondition ¶
func SetDeviceCondition(status *iotv1alpha1.DeviceStatus, condition *iotv1alpha1.DeviceCondition)
SetDeviceCondition updates the Device to include the provided condition. If the condition that we are about to add already exists and has the same status, reason and message then we are not going to update.
func SetDeviceServiceCondition ¶
func SetDeviceServiceCondition(status *iotv1alpha1.DeviceServiceStatus, condition *iotv1alpha1.DeviceServiceCondition)
SetDeviceServiceCondition updates the DeviceService to include the provided condition. If the condition that we are about to add already exists and has the same status, reason and message then we are not going to update.
func StrToFloat ¶
Types ¶
This section is empty.