Documentation
¶
Index ¶
- Variables
- func FaultIncorrectMemberStates(stopRequired bool, members, expectedStates string) *fault.Fault
- func GetActionMsg(class chkpb.CheckInconsistClass, action chkpb.CheckInconsistAction, ...) string
- func IsIncorrectMemberStates(err error) bool
- func IsPassFindings(err error) bool
- type Finding
- type FindingStore
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoMorePasses = errors.New("no more passes") ErrPassFindings = errors.New("pass has findings that must be addressed") )
View Source
var ( FaultCheckerNotEnabled = checkerFault( code.SystemCheckerNotEnabled, "system checker is not enabled", "enable the system checker and try again", ) FaultCheckerEnabled = checkerFault( code.SystemCheckerEnabled, "system checker is enabled; normal operations are disabled", "disable the system checker to enable normal operations", ) )
Functions ¶
func GetActionMsg ¶
func GetActionMsg(class chkpb.CheckInconsistClass, action chkpb.CheckInconsistAction, details ...string) string
GetActionMsg attempts to generate a human-readable description of the action that may be taken for the given finding.
func IsIncorrectMemberStates ¶
func IsPassFindings ¶
Types ¶
type Finding ¶
type Finding struct {
chkpb.CheckReport
}
func AnnotateFinding ¶
AnnotateFinding updates human-readable action messages.
func MockFinding ¶
func NewFinding ¶
func NewFinding(report *chkpb.CheckReport) *Finding
func (*Finding) ValidChoicesString ¶
type FindingStore ¶
type FindingStore interface {
AddCheckerFinding(finding *Finding) error
UpdateCheckerFinding(finding *Finding) error
AddOrUpdateCheckerFinding(finding *Finding) error
GetCheckerFindings(seqs ...uint64) ([]*Finding, error)
GetCheckerFinding(seq uint64) (*Finding, error)
SetCheckerFindingAction(seq uint64, action int32) error
}
Click to show internal directories.
Click to hide internal directories.