batchcheckservice

package
v0.0.0-...-d983439 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 24, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupMockCertificateCheck

func SetupMockCertificateCheck() trigger.ICheck

func SetupMockExternalOpenSearchCheck

func SetupMockExternalOpenSearchCheck(resp []models.CheckTriggerResponse) trigger.ICheck

func SetupMockExternalPostgresCheck

func SetupMockExternalPostgresCheck(resp []models.CheckTriggerResponse) trigger.ICheck

func SetupMockFirewallCheck

func SetupMockFirewallCheck() trigger.ICheck

func SetupMockFqdnCheck

func SetupMockFqdnCheck() trigger.ICheck

func SetupMockGCPBackupConfigCheck

func SetupMockGCPBackupConfigCheck() trigger.ICheck

func SetupMockHardwareResourceCountCheck

func SetupMockHardwareResourceCountCheck(resp []models.CheckTriggerResponse) trigger.ICheck

func SetupMockNfsBackupConfigCheck

func SetupMockNfsBackupConfigCheck() trigger.ICheck

func SetupMockOpenSearchS3BucketAccessCheck

func SetupMockOpenSearchS3BucketAccessCheck() trigger.ICheck

func SetupMockS3BackupConfigCheck

func SetupMockS3BackupConfigCheck() trigger.ICheck

func SetupMockSoftwareVersionCheck

func SetupMockSoftwareVersionCheck() trigger.ICheck

func SetupMockSshUserAccessCheck

func SetupMockSshUserAccessCheck(resp []models.CheckTriggerResponse) trigger.ICheck

func SetupMockSystemResourceCheck

func SetupMockSystemResourceCheck() trigger.ICheck

func SetupMockSystemUserCheck

func SetupMockSystemUserCheck() 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 IBatchCheckService interface {
	BatchCheck(checks []string, config *models.Config) (models.BatchCheckResponse, error)
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL