Documentation ¶
Index ¶
- func SetupMockCertificateCheck() trigger.ICheck
- func SetupMockExternalOpenSearchCheck(resp []models.CheckTriggerResponse) trigger.ICheck
- func SetupMockExternalPostgresCheck(resp []models.CheckTriggerResponse) trigger.ICheck
- func SetupMockFirewallCheck() trigger.ICheck
- func SetupMockFqdnCheck() trigger.ICheck
- func SetupMockGCPBackupConfigCheck() trigger.ICheck
- func SetupMockHardwareResourceCountCheck(resp []models.CheckTriggerResponse) trigger.ICheck
- func SetupMockNfsBackupConfigCheck() trigger.ICheck
- func SetupMockOpenSearchS3BucketAccessCheck() trigger.ICheck
- func SetupMockS3BackupConfigCheck() trigger.ICheck
- func SetupMockSoftwareVersionCheck() trigger.ICheck
- func SetupMockSshUserAccessCheck(resp []models.CheckTriggerResponse) trigger.ICheck
- func SetupMockSystemResourceCheck() trigger.ICheck
- func SetupMockSystemUserCheck() trigger.ICheck
- type BatchCheckService
- func (ss *BatchCheckService) BatchCheck(checks []string, config *models.Config) (models.BatchCheckResponse, error)
- func (ss *BatchCheckService) RunBastionCheck(check string, config *models.Config, ...)
- func (ss *BatchCheckService) RunRemoteCheck(check string, config *models.Config) []models.CheckTriggerResponse
- type IBatchCheckService
- type MockBatchCheckService
- type MockCertificateCheck
- type MockExternalOpenSearchCheck
- type MockExternalPostgresCheck
- type MockFirewallCheck
- type MockFqdnCheck
- type MockGCPBackupConfigCheck
- type MockHardwareResourceCountCheck
- type MockNfsBackupConfigCheck
- type MockOpenSearchS3BucketAccessCheck
- type MockS3BackupConfigCheck
- type MockSoftwareVersionCheck
- type MockSshUserAccessCheck
- type MockSystemResourceCheck
- type MockSystemUserCheck
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupMockExternalOpenSearchCheck ¶
func SetupMockExternalOpenSearchCheck(resp []models.CheckTriggerResponse) trigger.ICheck
func SetupMockExternalPostgresCheck ¶
func SetupMockExternalPostgresCheck(resp []models.CheckTriggerResponse) trigger.ICheck
func SetupMockFirewallCheck ¶
func SetupMockFqdnCheck ¶
func SetupMockHardwareResourceCountCheck ¶
func SetupMockHardwareResourceCountCheck(resp []models.CheckTriggerResponse) trigger.ICheck
func SetupMockSshUserAccessCheck ¶
func SetupMockSshUserAccessCheck(resp []models.CheckTriggerResponse) trigger.ICheck
Types ¶
type BatchCheckService ¶
type BatchCheckService struct {
// contains filtered or unexported fields
}
func NewBatchCheckService ¶
func NewBatchCheckService(trigger trigger.CheckTrigger, log logger.Logger, port string) *BatchCheckService
func (*BatchCheckService) BatchCheck ¶
func (ss *BatchCheckService) BatchCheck(checks []string, config *models.Config) (models.BatchCheckResponse, error)
func (*BatchCheckService) RunBastionCheck ¶
func (ss *BatchCheckService) RunBastionCheck(check string, config *models.Config, resultChan chan []models.CheckTriggerResponse)
func (*BatchCheckService) RunRemoteCheck ¶
func (ss *BatchCheckService) RunRemoteCheck(check string, config *models.Config) []models.CheckTriggerResponse
type IBatchCheckService ¶
type MockBatchCheckService ¶
type MockBatchCheckService struct {
BatchCheckFunc func([]string, *models.Config) (models.BatchCheckResponse, error)
}
func (*MockBatchCheckService) BatchCheck ¶
func (mss *MockBatchCheckService) BatchCheck(checks []string, config *models.Config) (models.BatchCheckResponse, error)
type MockCertificateCheck ¶
type MockCertificateCheck struct { CertificateCheckFunc func(config *models.Config) []models.CheckTriggerResponse GetPortsForMockServerFunc func() map[string]map[string][]int }
func (*MockCertificateCheck) GetPortsForMockServer ¶
func (mss *MockCertificateCheck) GetPortsForMockServer() map[string]map[string][]int
func (*MockCertificateCheck) Run ¶
func (mss *MockCertificateCheck) Run(config *models.Config) []models.CheckTriggerResponse
type MockExternalOpenSearchCheck ¶
type MockExternalOpenSearchCheck struct { ExternalOpenSearchCheckFunc func(config *models.Config) []models.CheckTriggerResponse GetPortsForMockServerFunc func() map[string]map[string][]int }
func (*MockExternalOpenSearchCheck) GetPortsForMockServer ¶
func (mss *MockExternalOpenSearchCheck) GetPortsForMockServer() map[string]map[string][]int
func (*MockExternalOpenSearchCheck) Run ¶
func (mss *MockExternalOpenSearchCheck) Run(config *models.Config) []models.CheckTriggerResponse
type MockExternalPostgresCheck ¶
type MockExternalPostgresCheck struct { ExternalPostgresCheckFunc func(config *models.Config) []models.CheckTriggerResponse GetPortsForMockServerFunc func() map[string]map[string][]int }
func (*MockExternalPostgresCheck) GetPortsForMockServer ¶
func (mss *MockExternalPostgresCheck) GetPortsForMockServer() map[string]map[string][]int
func (*MockExternalPostgresCheck) Run ¶
func (mss *MockExternalPostgresCheck) Run(config *models.Config) []models.CheckTriggerResponse
type MockFirewallCheck ¶
type MockFirewallCheck struct { FirewallCheckFunc func(config *models.Config) []models.CheckTriggerResponse GetPortsForMockServerFunc func() map[string]map[string][]int }
func (*MockFirewallCheck) GetPortsForMockServer ¶
func (mss *MockFirewallCheck) GetPortsForMockServer() map[string]map[string][]int
func (*MockFirewallCheck) Run ¶
func (mss *MockFirewallCheck) Run(config *models.Config) []models.CheckTriggerResponse
type MockFqdnCheck ¶
type MockFqdnCheck struct { FqdnCheckFunc func(config *models.Config) []models.CheckTriggerResponse GetPortsForMockServerFunc func() map[string]map[string][]int }
func (*MockFqdnCheck) GetPortsForMockServer ¶
func (mss *MockFqdnCheck) GetPortsForMockServer() map[string]map[string][]int
func (*MockFqdnCheck) Run ¶
func (mss *MockFqdnCheck) Run(config *models.Config) []models.CheckTriggerResponse
type MockGCPBackupConfigCheck ¶
type MockGCPBackupConfigCheck struct { GCPBackupConfigCheckFunc func(config *models.Config) []models.CheckTriggerResponse GetPortsForMockServerFunc func() map[string]map[string][]int }
func (*MockGCPBackupConfigCheck) GetPortsForMockServer ¶
func (mss *MockGCPBackupConfigCheck) GetPortsForMockServer() map[string]map[string][]int
func (*MockGCPBackupConfigCheck) Run ¶
func (mss *MockGCPBackupConfigCheck) Run(config *models.Config) []models.CheckTriggerResponse
type MockHardwareResourceCountCheck ¶
type MockHardwareResourceCountCheck struct { HardwareResourceCountCheckFunc func(config *models.Config) []models.CheckTriggerResponse GetPortsForMockServerFunc func() map[string]map[string][]int }
func (*MockHardwareResourceCountCheck) GetPortsForMockServer ¶
func (mss *MockHardwareResourceCountCheck) GetPortsForMockServer() map[string]map[string][]int
func (*MockHardwareResourceCountCheck) Run ¶
func (mss *MockHardwareResourceCountCheck) Run(config *models.Config) []models.CheckTriggerResponse
type MockNfsBackupConfigCheck ¶
type MockNfsBackupConfigCheck struct { NfsBackupConfigCheckFunc func(config *models.Config) []models.CheckTriggerResponse GetPortsForMockServerFunc func() map[string]map[string][]int }
func (*MockNfsBackupConfigCheck) GetPortsForMockServer ¶
func (mss *MockNfsBackupConfigCheck) GetPortsForMockServer() map[string]map[string][]int
func (*MockNfsBackupConfigCheck) Run ¶
func (mss *MockNfsBackupConfigCheck) Run(config *models.Config) []models.CheckTriggerResponse
type MockOpenSearchS3BucketAccessCheck ¶
type MockOpenSearchS3BucketAccessCheck struct { OpenSearchS3BucketAccessCheckFunc func(config *models.Config) []models.CheckTriggerResponse GetPortsForMockServerFunc func() map[string]map[string][]int }
func (*MockOpenSearchS3BucketAccessCheck) GetPortsForMockServer ¶
func (mss *MockOpenSearchS3BucketAccessCheck) GetPortsForMockServer() map[string]map[string][]int
func (*MockOpenSearchS3BucketAccessCheck) Run ¶
func (mss *MockOpenSearchS3BucketAccessCheck) Run(config *models.Config) []models.CheckTriggerResponse
type MockS3BackupConfigCheck ¶
type MockS3BackupConfigCheck struct { S3BackupConfigCheckFunc func(config *models.Config) []models.CheckTriggerResponse GetPortsForMockServerFunc func() map[string]map[string][]int }
func (*MockS3BackupConfigCheck) GetPortsForMockServer ¶
func (mss *MockS3BackupConfigCheck) GetPortsForMockServer() map[string]map[string][]int
func (*MockS3BackupConfigCheck) Run ¶
func (mss *MockS3BackupConfigCheck) Run(config *models.Config) []models.CheckTriggerResponse
type MockSoftwareVersionCheck ¶
type MockSoftwareVersionCheck struct { SoftwareVersionCheckFunc func(config *models.Config) []models.CheckTriggerResponse GetPortsForMockServerFunc func() map[string]map[string][]int }
func (*MockSoftwareVersionCheck) GetPortsForMockServer ¶
func (mss *MockSoftwareVersionCheck) GetPortsForMockServer() map[string]map[string][]int
func (*MockSoftwareVersionCheck) Run ¶
func (mss *MockSoftwareVersionCheck) Run(config *models.Config) []models.CheckTriggerResponse
type MockSshUserAccessCheck ¶
type MockSshUserAccessCheck struct { SshUserAccessCheckFunc func(config *models.Config) []models.CheckTriggerResponse GetPortsForMockServerFunc func() map[string]map[string][]int }
func (*MockSshUserAccessCheck) GetPortsForMockServer ¶
func (mss *MockSshUserAccessCheck) GetPortsForMockServer() map[string]map[string][]int
func (*MockSshUserAccessCheck) Run ¶
func (mss *MockSshUserAccessCheck) Run(config *models.Config) []models.CheckTriggerResponse
type MockSystemResourceCheck ¶
type MockSystemResourceCheck struct { SystemResourceCheckFunc func(config *models.Config) []models.CheckTriggerResponse GetPortsForMockServerFunc func() map[string]map[string][]int }
func (*MockSystemResourceCheck) GetPortsForMockServer ¶
func (mss *MockSystemResourceCheck) GetPortsForMockServer() map[string]map[string][]int
func (*MockSystemResourceCheck) Run ¶
func (mss *MockSystemResourceCheck) Run(config *models.Config) []models.CheckTriggerResponse
type MockSystemUserCheck ¶
type MockSystemUserCheck struct { SystemUserCheckFunc func(config *models.Config) []models.CheckTriggerResponse GetPortsForMockServerFunc func() map[string]map[string][]int }
func (*MockSystemUserCheck) GetPortsForMockServer ¶
func (mss *MockSystemUserCheck) GetPortsForMockServer() map[string]map[string][]int
func (*MockSystemUserCheck) Run ¶
func (mss *MockSystemUserCheck) Run(config *models.Config) []models.CheckTriggerResponse
Click to show internal directories.
Click to hide internal directories.