Documentation ¶
Index ¶
- func ConstructEmptyResp(config *models.Config, checktype, msg string) []models.CheckTriggerResponse
- func ConstructNilResp(config *models.Config, checktype, message string) []models.CheckTriggerResponse
- func ErrTriggerCheckResp(ip, checkType, nodeType, msg string) models.CheckTriggerResponse
- func HardwareNil(checkType, message string, includeOPENSEARCH bool, includePOSTGRESQL bool, ...) []models.CheckTriggerResponse
- func RunCheck(config *models.Config, log logger.Logger, port string, path string, ...) []models.CheckTriggerResponse
- func SkippedTriggerCheckResp(ip, checktype, nodeType, message string) models.CheckTriggerResponse
- func TriggerCheckAPI(endPoint, host, nodeType, method string, ...)
- type CheckTrigger
- type ErrorResponse
- type ICheck
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConstructEmptyResp ¶
func ConstructEmptyResp(config *models.Config, checktype, msg string) []models.CheckTriggerResponse
func ConstructNilResp ¶
func ConstructNilResp(config *models.Config, checktype, message string) []models.CheckTriggerResponse
func ErrTriggerCheckResp ¶
func ErrTriggerCheckResp(ip, checkType, nodeType, msg string) models.CheckTriggerResponse
func HardwareNil ¶
func SkippedTriggerCheckResp ¶
func SkippedTriggerCheckResp(ip, checktype, nodeType, message string) models.CheckTriggerResponse
func TriggerCheckAPI ¶
func TriggerCheckAPI(endPoint, host, nodeType, method string, output chan<- models.CheckTriggerResponse, reqBody interface{})
TriggerCheckAPI triggers the API with provided enpoint,host,nodetype,method and reqbody. EndPoint should be string The method can be GET,POST,PUT Return an channel for output In case of error, error is stored in output channel itself
Types ¶
type CheckTrigger ¶
type CheckTrigger struct { HardwareResourceCountCheck ICheck SshUserAccessCheck ICheck CertificateCheck ICheck ExternalOpensearchCheck ICheck ExternalPostgresCheck ICheck FirewallCheck ICheck FqdnCheck ICheck NfsBackupConfigCheck ICheck OpensearchS3BucketAccessCheck ICheck S3BackupConfigCheck ICheck SoftwareVersionCheck ICheck SystemResourceCheck ICheck SystemUserCheck ICheck GCPBackupConfigCheck ICheck }
func NewCheckTrigger ¶
func NewCheckTrigger(hrc, sshC, cert, eop, epc, fc, fqdn, nfs, os3, s3b, svc, src, suc, gcpb ICheck) CheckTrigger
type ErrorResponse ¶
Click to show internal directories.
Click to hide internal directories.