mocks

package
v0.46.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockRemediationService

type MockRemediationService struct {
	// contains filtered or unexported fields
}

func NewMockRemediationService

func NewMockRemediationService(options ...pegomock.Option) *MockRemediationService

func (*MockRemediationService) FailHandler

func (mock *MockRemediationService) FailHandler() pegomock.FailHandler

func (*MockRemediationService) GetResult

func (*MockRemediationService) ListResults

func (mock *MockRemediationService) ListResults(repository string, limit int) ([]*models.RemediationResult, error)

func (*MockRemediationService) Remediate

func (*MockRemediationService) SetFailHandler

func (mock *MockRemediationService) SetFailHandler(fh pegomock.FailHandler)

func (*MockRemediationService) VerifyWasCalled

func (mock *MockRemediationService) VerifyWasCalled(invocationCountMatcher pegomock.InvocationCountMatcher) *VerifierMockRemediationService

func (*MockRemediationService) VerifyWasCalledEventually

func (mock *MockRemediationService) VerifyWasCalledEventually(invocationCountMatcher pegomock.InvocationCountMatcher, timeout time.Duration) *VerifierMockRemediationService

func (*MockRemediationService) VerifyWasCalledInOrder

func (mock *MockRemediationService) VerifyWasCalledInOrder(invocationCountMatcher pegomock.InvocationCountMatcher, inOrderContext *pegomock.InOrderContext) *VerifierMockRemediationService

func (*MockRemediationService) VerifyWasCalledOnce

func (mock *MockRemediationService) VerifyWasCalledOnce() *VerifierMockRemediationService

type MockRemediationService_GetResult_OngoingVerification

type MockRemediationService_GetResult_OngoingVerification struct {
	// contains filtered or unexported fields
}

func (*MockRemediationService_GetResult_OngoingVerification) GetAllCapturedArguments

func (c *MockRemediationService_GetResult_OngoingVerification) GetAllCapturedArguments() (_param0 []string)

func (*MockRemediationService_GetResult_OngoingVerification) GetCapturedArguments

type MockRemediationService_ListResults_OngoingVerification

type MockRemediationService_ListResults_OngoingVerification struct {
	// contains filtered or unexported fields
}

func (*MockRemediationService_ListResults_OngoingVerification) GetAllCapturedArguments

func (c *MockRemediationService_ListResults_OngoingVerification) GetAllCapturedArguments() (_param0 []string, _param1 []int)

func (*MockRemediationService_ListResults_OngoingVerification) GetCapturedArguments

type MockRemediationService_Remediate_OngoingVerification

type MockRemediationService_Remediate_OngoingVerification struct {
	// contains filtered or unexported fields
}

func (*MockRemediationService_Remediate_OngoingVerification) GetAllCapturedArguments

func (*MockRemediationService_Remediate_OngoingVerification) GetCapturedArguments

type MockStorage

type MockStorage struct {
	// contains filtered or unexported fields
}

func NewMockStorage

func NewMockStorage(options ...pegomock.Option) *MockStorage

func (*MockStorage) Delete

func (mock *MockStorage) Delete(repository string, projectName string) error

func (*MockStorage) DeleteMatching

func (mock *MockStorage) DeleteMatching(repository string, opts drift.GetOptions) error

func (*MockStorage) FailHandler

func (mock *MockStorage) FailHandler() pegomock.FailHandler

func (*MockStorage) Get

func (mock *MockStorage) Get(repository string, opts drift.GetOptions) ([]models.ProjectDrift, error)

func (*MockStorage) GetAll

func (mock *MockStorage) GetAll() (map[string][]models.ProjectDrift, error)

func (*MockStorage) SetFailHandler

func (mock *MockStorage) SetFailHandler(fh pegomock.FailHandler)

func (*MockStorage) Store

func (mock *MockStorage) Store(repository string, drift models.ProjectDrift) error

func (*MockStorage) VerifyWasCalled

func (mock *MockStorage) VerifyWasCalled(invocationCountMatcher pegomock.InvocationCountMatcher) *VerifierMockStorage

func (*MockStorage) VerifyWasCalledEventually

func (mock *MockStorage) VerifyWasCalledEventually(invocationCountMatcher pegomock.InvocationCountMatcher, timeout time.Duration) *VerifierMockStorage

func (*MockStorage) VerifyWasCalledInOrder

func (mock *MockStorage) VerifyWasCalledInOrder(invocationCountMatcher pegomock.InvocationCountMatcher, inOrderContext *pegomock.InOrderContext) *VerifierMockStorage

func (*MockStorage) VerifyWasCalledOnce

func (mock *MockStorage) VerifyWasCalledOnce() *VerifierMockStorage

type MockStorage_DeleteMatching_OngoingVerification

type MockStorage_DeleteMatching_OngoingVerification struct {
	// contains filtered or unexported fields
}

func (*MockStorage_DeleteMatching_OngoingVerification) GetAllCapturedArguments

func (c *MockStorage_DeleteMatching_OngoingVerification) GetAllCapturedArguments() (_param0 []string, _param1 []drift.GetOptions)

func (*MockStorage_DeleteMatching_OngoingVerification) GetCapturedArguments

type MockStorage_Delete_OngoingVerification

type MockStorage_Delete_OngoingVerification struct {
	// contains filtered or unexported fields
}

func (*MockStorage_Delete_OngoingVerification) GetAllCapturedArguments

func (c *MockStorage_Delete_OngoingVerification) GetAllCapturedArguments() (_param0 []string, _param1 []string)

func (*MockStorage_Delete_OngoingVerification) GetCapturedArguments

func (c *MockStorage_Delete_OngoingVerification) GetCapturedArguments() (string, string)

type MockStorage_GetAll_OngoingVerification

type MockStorage_GetAll_OngoingVerification struct {
	// contains filtered or unexported fields
}

func (*MockStorage_GetAll_OngoingVerification) GetAllCapturedArguments

func (c *MockStorage_GetAll_OngoingVerification) GetAllCapturedArguments()

func (*MockStorage_GetAll_OngoingVerification) GetCapturedArguments

func (c *MockStorage_GetAll_OngoingVerification) GetCapturedArguments()

type MockStorage_Get_OngoingVerification

type MockStorage_Get_OngoingVerification struct {
	// contains filtered or unexported fields
}

func (*MockStorage_Get_OngoingVerification) GetAllCapturedArguments

func (c *MockStorage_Get_OngoingVerification) GetAllCapturedArguments() (_param0 []string, _param1 []drift.GetOptions)

func (*MockStorage_Get_OngoingVerification) GetCapturedArguments

func (c *MockStorage_Get_OngoingVerification) GetCapturedArguments() (string, drift.GetOptions)

type MockStorage_Store_OngoingVerification

type MockStorage_Store_OngoingVerification struct {
	// contains filtered or unexported fields
}

func (*MockStorage_Store_OngoingVerification) GetAllCapturedArguments

func (c *MockStorage_Store_OngoingVerification) GetAllCapturedArguments() (_param0 []string, _param1 []models.ProjectDrift)

func (*MockStorage_Store_OngoingVerification) GetCapturedArguments

func (c *MockStorage_Store_OngoingVerification) GetCapturedArguments() (string, models.ProjectDrift)

type VerifierMockRemediationService

type VerifierMockRemediationService struct {
	// contains filtered or unexported fields
}

func (*VerifierMockRemediationService) GetResult

func (*VerifierMockRemediationService) ListResults

type VerifierMockStorage

type VerifierMockStorage struct {
	// contains filtered or unexported fields
}

func (*VerifierMockStorage) Delete

func (verifier *VerifierMockStorage) Delete(repository string, projectName string) *MockStorage_Delete_OngoingVerification

func (*VerifierMockStorage) DeleteMatching

func (*VerifierMockStorage) Get

func (*VerifierMockStorage) GetAll

func (*VerifierMockStorage) Store

Jump to

Keyboard shortcuts

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