cleanup before go generate (and multi-arch builds using zig).
This commit is contained in:
@@ -87,9 +87,6 @@ devices:
|
|||||||
########################################################################################################################
|
########################################################################################################################
|
||||||
|
|
||||||
#collect:
|
#collect:
|
||||||
# metric:
|
|
||||||
# enable: true
|
|
||||||
# command: '-a -o on -S on'
|
|
||||||
# long:
|
# long:
|
||||||
# enable: false
|
# enable: false
|
||||||
# command: ''
|
# command: ''
|
||||||
|
|||||||
@@ -11,8 +11,8 @@ const NotifyLevelFail = "fail"
|
|||||||
const NotifyLevelFailScrutiny = "fail_scrutiny"
|
const NotifyLevelFailScrutiny = "fail_scrutiny"
|
||||||
const NotifyLevelFailSmart = "fail_smart"
|
const NotifyLevelFailSmart = "fail_smart"
|
||||||
|
|
||||||
|
//go:generate stringer -type=AttributeStatus
|
||||||
type AttributeStatus uint8
|
type AttributeStatus uint8
|
||||||
|
|
||||||
const (
|
const (
|
||||||
// AttributeStatusPassed binary, 1,2,4,8,16,32,etc
|
// AttributeStatusPassed binary, 1,2,4,8,16,32,etc
|
||||||
AttributeStatusPassed AttributeStatus = 0
|
AttributeStatusPassed AttributeStatus = 0
|
||||||
@@ -29,8 +29,8 @@ func AttributeStatusClear(b, flag AttributeStatus) AttributeStatus { return b &
|
|||||||
func AttributeStatusToggle(b, flag AttributeStatus) AttributeStatus { return b ^ flag }
|
func AttributeStatusToggle(b, flag AttributeStatus) AttributeStatus { return b ^ flag }
|
||||||
func AttributeStatusHas(b, flag AttributeStatus) bool { return b&flag != 0 }
|
func AttributeStatusHas(b, flag AttributeStatus) bool { return b&flag != 0 }
|
||||||
|
|
||||||
|
//go:generate stringer -type=DeviceStatus
|
||||||
type DeviceStatus uint8
|
type DeviceStatus uint8
|
||||||
|
|
||||||
const (
|
const (
|
||||||
// DeviceStatusPassed binary, 1,2,4,8,16,32,etc
|
// DeviceStatusPassed binary, 1,2,4,8,16,32,etc
|
||||||
DeviceStatusPassed DeviceStatus = 0
|
DeviceStatusPassed DeviceStatus = 0
|
||||||
|
|||||||
Reference in New Issue
Block a user