Documentation ¶
Index ¶
- type MockApplyLockChecker
- func (mock *MockApplyLockChecker) CheckApplyLock() (locking.ApplyCommandLock, error)
- func (mock *MockApplyLockChecker) FailHandler() pegomock.FailHandler
- func (mock *MockApplyLockChecker) SetFailHandler(fh pegomock.FailHandler)
- func (mock *MockApplyLockChecker) VerifyWasCalled(invocationCountMatcher pegomock.InvocationCountMatcher) *VerifierMockApplyLockChecker
- func (mock *MockApplyLockChecker) VerifyWasCalledEventually(invocationCountMatcher pegomock.InvocationCountMatcher, timeout time.Duration) *VerifierMockApplyLockChecker
- func (mock *MockApplyLockChecker) VerifyWasCalledInOrder(invocationCountMatcher pegomock.InvocationCountMatcher, ...) *VerifierMockApplyLockChecker
- func (mock *MockApplyLockChecker) VerifyWasCalledOnce() *VerifierMockApplyLockChecker
- type MockApplyLockChecker_CheckApplyLock_OngoingVerification
- type MockApplyLocker
- func (mock *MockApplyLocker) CheckApplyLock() (locking.ApplyCommandLock, error)
- func (mock *MockApplyLocker) FailHandler() pegomock.FailHandler
- func (mock *MockApplyLocker) LockApply() (locking.ApplyCommandLock, error)
- func (mock *MockApplyLocker) SetFailHandler(fh pegomock.FailHandler)
- func (mock *MockApplyLocker) UnlockApply() error
- func (mock *MockApplyLocker) VerifyWasCalled(invocationCountMatcher pegomock.InvocationCountMatcher) *VerifierMockApplyLocker
- func (mock *MockApplyLocker) VerifyWasCalledEventually(invocationCountMatcher pegomock.InvocationCountMatcher, timeout time.Duration) *VerifierMockApplyLocker
- func (mock *MockApplyLocker) VerifyWasCalledInOrder(invocationCountMatcher pegomock.InvocationCountMatcher, ...) *VerifierMockApplyLocker
- func (mock *MockApplyLocker) VerifyWasCalledOnce() *VerifierMockApplyLocker
- type MockApplyLocker_CheckApplyLock_OngoingVerification
- type MockApplyLocker_LockApply_OngoingVerification
- type MockApplyLocker_UnlockApply_OngoingVerification
- type MockBackend
- func (mock *MockBackend) CheckCommandLock(cmdName command.Name) (*command.Lock, error)
- func (mock *MockBackend) DeletePullStatus(pull models.PullRequest) error
- func (mock *MockBackend) FailHandler() pegomock.FailHandler
- func (mock *MockBackend) GetLock(project models.Project, workspace string) (*models.ProjectLock, error)
- func (mock *MockBackend) GetPullStatus(pull models.PullRequest) (*models.PullStatus, error)
- func (mock *MockBackend) List() ([]models.ProjectLock, error)
- func (mock *MockBackend) LockCommand(cmdName command.Name, lockTime time.Time) (*command.Lock, error)
- func (mock *MockBackend) SetFailHandler(fh pegomock.FailHandler)
- func (mock *MockBackend) TryLock(lock models.ProjectLock) (bool, models.ProjectLock, error)
- func (mock *MockBackend) Unlock(project models.Project, workspace string) (*models.ProjectLock, error)
- func (mock *MockBackend) UnlockByPull(repoFullName string, pullNum int) ([]models.ProjectLock, error)
- func (mock *MockBackend) UnlockCommand(cmdName command.Name) error
- func (mock *MockBackend) UpdateProjectStatus(pull models.PullRequest, workspace string, repoRelDir string, ...) error
- func (mock *MockBackend) UpdatePullWithResults(pull models.PullRequest, newResults []command.ProjectResult) (models.PullStatus, error)
- func (mock *MockBackend) VerifyWasCalled(invocationCountMatcher pegomock.InvocationCountMatcher) *VerifierMockBackend
- func (mock *MockBackend) VerifyWasCalledEventually(invocationCountMatcher pegomock.InvocationCountMatcher, timeout time.Duration) *VerifierMockBackend
- func (mock *MockBackend) VerifyWasCalledInOrder(invocationCountMatcher pegomock.InvocationCountMatcher, ...) *VerifierMockBackend
- func (mock *MockBackend) VerifyWasCalledOnce() *VerifierMockBackend
- type MockBackend_CheckCommandLock_OngoingVerification
- type MockBackend_DeletePullStatus_OngoingVerification
- type MockBackend_GetLock_OngoingVerification
- type MockBackend_GetPullStatus_OngoingVerification
- type MockBackend_List_OngoingVerification
- type MockBackend_LockCommand_OngoingVerification
- type MockBackend_TryLock_OngoingVerification
- type MockBackend_UnlockByPull_OngoingVerification
- type MockBackend_UnlockCommand_OngoingVerification
- type MockBackend_Unlock_OngoingVerification
- type MockBackend_UpdateProjectStatus_OngoingVerification
- func (c *MockBackend_UpdateProjectStatus_OngoingVerification) GetAllCapturedArguments() (_param0 []models.PullRequest, _param1 []string, _param2 []string, ...)
- func (c *MockBackend_UpdateProjectStatus_OngoingVerification) GetCapturedArguments() (models.PullRequest, string, string, models.ProjectPlanStatus)
- type MockBackend_UpdatePullWithResults_OngoingVerification
- type MockLocker
- func (mock *MockLocker) FailHandler() pegomock.FailHandler
- func (mock *MockLocker) GetLock(key string) (*models.ProjectLock, error)
- func (mock *MockLocker) List() (map[string]models.ProjectLock, error)
- func (mock *MockLocker) SetFailHandler(fh pegomock.FailHandler)
- func (mock *MockLocker) TryLock(p models.Project, workspace string, pull models.PullRequest, user models.User) (locking.TryLockResponse, error)
- func (mock *MockLocker) Unlock(key string) (*models.ProjectLock, error)
- func (mock *MockLocker) UnlockByPull(repoFullName string, pullNum int) ([]models.ProjectLock, error)
- func (mock *MockLocker) VerifyWasCalled(invocationCountMatcher pegomock.InvocationCountMatcher) *VerifierMockLocker
- func (mock *MockLocker) VerifyWasCalledEventually(invocationCountMatcher pegomock.InvocationCountMatcher, timeout time.Duration) *VerifierMockLocker
- func (mock *MockLocker) VerifyWasCalledInOrder(invocationCountMatcher pegomock.InvocationCountMatcher, ...) *VerifierMockLocker
- func (mock *MockLocker) VerifyWasCalledOnce() *VerifierMockLocker
- type MockLocker_GetLock_OngoingVerification
- type MockLocker_List_OngoingVerification
- type MockLocker_TryLock_OngoingVerification
- type MockLocker_UnlockByPull_OngoingVerification
- type MockLocker_Unlock_OngoingVerification
- type VerifierMockApplyLockChecker
- type VerifierMockApplyLocker
- func (verifier *VerifierMockApplyLocker) CheckApplyLock() *MockApplyLocker_CheckApplyLock_OngoingVerification
- func (verifier *VerifierMockApplyLocker) LockApply() *MockApplyLocker_LockApply_OngoingVerification
- func (verifier *VerifierMockApplyLocker) UnlockApply() *MockApplyLocker_UnlockApply_OngoingVerification
- type VerifierMockBackend
- func (verifier *VerifierMockBackend) CheckCommandLock(cmdName command.Name) *MockBackend_CheckCommandLock_OngoingVerification
- func (verifier *VerifierMockBackend) DeletePullStatus(pull models.PullRequest) *MockBackend_DeletePullStatus_OngoingVerification
- func (verifier *VerifierMockBackend) GetLock(project models.Project, workspace string) *MockBackend_GetLock_OngoingVerification
- func (verifier *VerifierMockBackend) GetPullStatus(pull models.PullRequest) *MockBackend_GetPullStatus_OngoingVerification
- func (verifier *VerifierMockBackend) List() *MockBackend_List_OngoingVerification
- func (verifier *VerifierMockBackend) LockCommand(cmdName command.Name, lockTime time.Time) *MockBackend_LockCommand_OngoingVerification
- func (verifier *VerifierMockBackend) TryLock(lock models.ProjectLock) *MockBackend_TryLock_OngoingVerification
- func (verifier *VerifierMockBackend) Unlock(project models.Project, workspace string) *MockBackend_Unlock_OngoingVerification
- func (verifier *VerifierMockBackend) UnlockByPull(repoFullName string, pullNum int) *MockBackend_UnlockByPull_OngoingVerification
- func (verifier *VerifierMockBackend) UnlockCommand(cmdName command.Name) *MockBackend_UnlockCommand_OngoingVerification
- func (verifier *VerifierMockBackend) UpdateProjectStatus(pull models.PullRequest, workspace string, repoRelDir string, ...) *MockBackend_UpdateProjectStatus_OngoingVerification
- func (verifier *VerifierMockBackend) UpdatePullWithResults(pull models.PullRequest, newResults []command.ProjectResult) *MockBackend_UpdatePullWithResults_OngoingVerification
- type VerifierMockLocker
- func (verifier *VerifierMockLocker) GetLock(key string) *MockLocker_GetLock_OngoingVerification
- func (verifier *VerifierMockLocker) List() *MockLocker_List_OngoingVerification
- func (verifier *VerifierMockLocker) TryLock(p models.Project, workspace string, pull models.PullRequest, user models.User) *MockLocker_TryLock_OngoingVerification
- func (verifier *VerifierMockLocker) Unlock(key string) *MockLocker_Unlock_OngoingVerification
- func (verifier *VerifierMockLocker) UnlockByPull(repoFullName string, pullNum int) *MockLocker_UnlockByPull_OngoingVerification
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockApplyLockChecker ¶
type MockApplyLockChecker struct {
// contains filtered or unexported fields
}
func NewMockApplyLockChecker ¶
func NewMockApplyLockChecker(options ...pegomock.Option) *MockApplyLockChecker
func (*MockApplyLockChecker) CheckApplyLock ¶
func (mock *MockApplyLockChecker) CheckApplyLock() (locking.ApplyCommandLock, error)
func (*MockApplyLockChecker) FailHandler ¶
func (mock *MockApplyLockChecker) FailHandler() pegomock.FailHandler
func (*MockApplyLockChecker) SetFailHandler ¶
func (mock *MockApplyLockChecker) SetFailHandler(fh pegomock.FailHandler)
func (*MockApplyLockChecker) VerifyWasCalled ¶
func (mock *MockApplyLockChecker) VerifyWasCalled(invocationCountMatcher pegomock.InvocationCountMatcher) *VerifierMockApplyLockChecker
func (*MockApplyLockChecker) VerifyWasCalledEventually ¶
func (mock *MockApplyLockChecker) VerifyWasCalledEventually(invocationCountMatcher pegomock.InvocationCountMatcher, timeout time.Duration) *VerifierMockApplyLockChecker
func (*MockApplyLockChecker) VerifyWasCalledInOrder ¶
func (mock *MockApplyLockChecker) VerifyWasCalledInOrder(invocationCountMatcher pegomock.InvocationCountMatcher, inOrderContext *pegomock.InOrderContext) *VerifierMockApplyLockChecker
func (*MockApplyLockChecker) VerifyWasCalledOnce ¶
func (mock *MockApplyLockChecker) VerifyWasCalledOnce() *VerifierMockApplyLockChecker
type MockApplyLockChecker_CheckApplyLock_OngoingVerification ¶
type MockApplyLockChecker_CheckApplyLock_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockApplyLockChecker_CheckApplyLock_OngoingVerification) GetAllCapturedArguments ¶
func (c *MockApplyLockChecker_CheckApplyLock_OngoingVerification) GetAllCapturedArguments()
func (*MockApplyLockChecker_CheckApplyLock_OngoingVerification) GetCapturedArguments ¶
func (c *MockApplyLockChecker_CheckApplyLock_OngoingVerification) GetCapturedArguments()
type MockApplyLocker ¶
type MockApplyLocker struct {
// contains filtered or unexported fields
}
func NewMockApplyLocker ¶
func NewMockApplyLocker(options ...pegomock.Option) *MockApplyLocker
func (*MockApplyLocker) CheckApplyLock ¶
func (mock *MockApplyLocker) CheckApplyLock() (locking.ApplyCommandLock, error)
func (*MockApplyLocker) FailHandler ¶
func (mock *MockApplyLocker) FailHandler() pegomock.FailHandler
func (*MockApplyLocker) LockApply ¶
func (mock *MockApplyLocker) LockApply() (locking.ApplyCommandLock, error)
func (*MockApplyLocker) SetFailHandler ¶
func (mock *MockApplyLocker) SetFailHandler(fh pegomock.FailHandler)
func (*MockApplyLocker) UnlockApply ¶
func (mock *MockApplyLocker) UnlockApply() error
func (*MockApplyLocker) VerifyWasCalled ¶
func (mock *MockApplyLocker) VerifyWasCalled(invocationCountMatcher pegomock.InvocationCountMatcher) *VerifierMockApplyLocker
func (*MockApplyLocker) VerifyWasCalledEventually ¶
func (mock *MockApplyLocker) VerifyWasCalledEventually(invocationCountMatcher pegomock.InvocationCountMatcher, timeout time.Duration) *VerifierMockApplyLocker
func (*MockApplyLocker) VerifyWasCalledInOrder ¶
func (mock *MockApplyLocker) VerifyWasCalledInOrder(invocationCountMatcher pegomock.InvocationCountMatcher, inOrderContext *pegomock.InOrderContext) *VerifierMockApplyLocker
func (*MockApplyLocker) VerifyWasCalledOnce ¶
func (mock *MockApplyLocker) VerifyWasCalledOnce() *VerifierMockApplyLocker
type MockApplyLocker_CheckApplyLock_OngoingVerification ¶
type MockApplyLocker_CheckApplyLock_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockApplyLocker_CheckApplyLock_OngoingVerification) GetAllCapturedArguments ¶
func (c *MockApplyLocker_CheckApplyLock_OngoingVerification) GetAllCapturedArguments()
func (*MockApplyLocker_CheckApplyLock_OngoingVerification) GetCapturedArguments ¶
func (c *MockApplyLocker_CheckApplyLock_OngoingVerification) GetCapturedArguments()
type MockApplyLocker_LockApply_OngoingVerification ¶
type MockApplyLocker_LockApply_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockApplyLocker_LockApply_OngoingVerification) GetAllCapturedArguments ¶
func (c *MockApplyLocker_LockApply_OngoingVerification) GetAllCapturedArguments()
func (*MockApplyLocker_LockApply_OngoingVerification) GetCapturedArguments ¶
func (c *MockApplyLocker_LockApply_OngoingVerification) GetCapturedArguments()
type MockApplyLocker_UnlockApply_OngoingVerification ¶
type MockApplyLocker_UnlockApply_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockApplyLocker_UnlockApply_OngoingVerification) GetAllCapturedArguments ¶
func (c *MockApplyLocker_UnlockApply_OngoingVerification) GetAllCapturedArguments()
func (*MockApplyLocker_UnlockApply_OngoingVerification) GetCapturedArguments ¶
func (c *MockApplyLocker_UnlockApply_OngoingVerification) GetCapturedArguments()
type MockBackend ¶
type MockBackend struct {
// contains filtered or unexported fields
}
func NewMockBackend ¶
func NewMockBackend(options ...pegomock.Option) *MockBackend
func (*MockBackend) CheckCommandLock ¶
func (*MockBackend) DeletePullStatus ¶ added in v0.19.9
func (mock *MockBackend) DeletePullStatus(pull models.PullRequest) error
func (*MockBackend) FailHandler ¶
func (mock *MockBackend) FailHandler() pegomock.FailHandler
func (*MockBackend) GetLock ¶
func (mock *MockBackend) GetLock(project models.Project, workspace string) (*models.ProjectLock, error)
func (*MockBackend) GetPullStatus ¶ added in v0.19.9
func (mock *MockBackend) GetPullStatus(pull models.PullRequest) (*models.PullStatus, error)
func (*MockBackend) List ¶
func (mock *MockBackend) List() ([]models.ProjectLock, error)
func (*MockBackend) LockCommand ¶
func (*MockBackend) SetFailHandler ¶
func (mock *MockBackend) SetFailHandler(fh pegomock.FailHandler)
func (*MockBackend) TryLock ¶
func (mock *MockBackend) TryLock(lock models.ProjectLock) (bool, models.ProjectLock, error)
func (*MockBackend) Unlock ¶
func (mock *MockBackend) Unlock(project models.Project, workspace string) (*models.ProjectLock, error)
func (*MockBackend) UnlockByPull ¶
func (mock *MockBackend) UnlockByPull(repoFullName string, pullNum int) ([]models.ProjectLock, error)
func (*MockBackend) UnlockCommand ¶
func (mock *MockBackend) UnlockCommand(cmdName command.Name) error
func (*MockBackend) UpdateProjectStatus ¶ added in v0.19.9
func (mock *MockBackend) UpdateProjectStatus(pull models.PullRequest, workspace string, repoRelDir string, newStatus models.ProjectPlanStatus) error
func (*MockBackend) UpdatePullWithResults ¶ added in v0.19.9
func (mock *MockBackend) UpdatePullWithResults(pull models.PullRequest, newResults []command.ProjectResult) (models.PullStatus, error)
func (*MockBackend) VerifyWasCalled ¶
func (mock *MockBackend) VerifyWasCalled(invocationCountMatcher pegomock.InvocationCountMatcher) *VerifierMockBackend
func (*MockBackend) VerifyWasCalledEventually ¶
func (mock *MockBackend) VerifyWasCalledEventually(invocationCountMatcher pegomock.InvocationCountMatcher, timeout time.Duration) *VerifierMockBackend
func (*MockBackend) VerifyWasCalledInOrder ¶
func (mock *MockBackend) VerifyWasCalledInOrder(invocationCountMatcher pegomock.InvocationCountMatcher, inOrderContext *pegomock.InOrderContext) *VerifierMockBackend
func (*MockBackend) VerifyWasCalledOnce ¶
func (mock *MockBackend) VerifyWasCalledOnce() *VerifierMockBackend
type MockBackend_CheckCommandLock_OngoingVerification ¶
type MockBackend_CheckCommandLock_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockBackend_CheckCommandLock_OngoingVerification) GetAllCapturedArguments ¶
func (c *MockBackend_CheckCommandLock_OngoingVerification) GetAllCapturedArguments() (_param0 []command.Name)
func (*MockBackend_CheckCommandLock_OngoingVerification) GetCapturedArguments ¶
func (c *MockBackend_CheckCommandLock_OngoingVerification) GetCapturedArguments() command.Name
type MockBackend_DeletePullStatus_OngoingVerification ¶ added in v0.19.9
type MockBackend_DeletePullStatus_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockBackend_DeletePullStatus_OngoingVerification) GetAllCapturedArguments ¶ added in v0.19.9
func (c *MockBackend_DeletePullStatus_OngoingVerification) GetAllCapturedArguments() (_param0 []models.PullRequest)
func (*MockBackend_DeletePullStatus_OngoingVerification) GetCapturedArguments ¶ added in v0.19.9
func (c *MockBackend_DeletePullStatus_OngoingVerification) GetCapturedArguments() models.PullRequest
type MockBackend_GetLock_OngoingVerification ¶
type MockBackend_GetLock_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockBackend_GetLock_OngoingVerification) GetAllCapturedArguments ¶
func (c *MockBackend_GetLock_OngoingVerification) GetAllCapturedArguments() (_param0 []models.Project, _param1 []string)
func (*MockBackend_GetLock_OngoingVerification) GetCapturedArguments ¶
func (c *MockBackend_GetLock_OngoingVerification) GetCapturedArguments() (models.Project, string)
type MockBackend_GetPullStatus_OngoingVerification ¶ added in v0.19.9
type MockBackend_GetPullStatus_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockBackend_GetPullStatus_OngoingVerification) GetAllCapturedArguments ¶ added in v0.19.9
func (c *MockBackend_GetPullStatus_OngoingVerification) GetAllCapturedArguments() (_param0 []models.PullRequest)
func (*MockBackend_GetPullStatus_OngoingVerification) GetCapturedArguments ¶ added in v0.19.9
func (c *MockBackend_GetPullStatus_OngoingVerification) GetCapturedArguments() models.PullRequest
type MockBackend_List_OngoingVerification ¶
type MockBackend_List_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockBackend_List_OngoingVerification) GetAllCapturedArguments ¶
func (c *MockBackend_List_OngoingVerification) GetAllCapturedArguments()
func (*MockBackend_List_OngoingVerification) GetCapturedArguments ¶
func (c *MockBackend_List_OngoingVerification) GetCapturedArguments()
type MockBackend_LockCommand_OngoingVerification ¶
type MockBackend_LockCommand_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockBackend_LockCommand_OngoingVerification) GetAllCapturedArguments ¶
func (c *MockBackend_LockCommand_OngoingVerification) GetAllCapturedArguments() (_param0 []command.Name, _param1 []time.Time)
func (*MockBackend_LockCommand_OngoingVerification) GetCapturedArguments ¶
func (c *MockBackend_LockCommand_OngoingVerification) GetCapturedArguments() (command.Name, time.Time)
type MockBackend_TryLock_OngoingVerification ¶
type MockBackend_TryLock_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockBackend_TryLock_OngoingVerification) GetAllCapturedArguments ¶
func (c *MockBackend_TryLock_OngoingVerification) GetAllCapturedArguments() (_param0 []models.ProjectLock)
func (*MockBackend_TryLock_OngoingVerification) GetCapturedArguments ¶
func (c *MockBackend_TryLock_OngoingVerification) GetCapturedArguments() models.ProjectLock
type MockBackend_UnlockByPull_OngoingVerification ¶
type MockBackend_UnlockByPull_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockBackend_UnlockByPull_OngoingVerification) GetAllCapturedArguments ¶
func (c *MockBackend_UnlockByPull_OngoingVerification) GetAllCapturedArguments() (_param0 []string, _param1 []int)
func (*MockBackend_UnlockByPull_OngoingVerification) GetCapturedArguments ¶
func (c *MockBackend_UnlockByPull_OngoingVerification) GetCapturedArguments() (string, int)
type MockBackend_UnlockCommand_OngoingVerification ¶
type MockBackend_UnlockCommand_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockBackend_UnlockCommand_OngoingVerification) GetAllCapturedArguments ¶
func (c *MockBackend_UnlockCommand_OngoingVerification) GetAllCapturedArguments() (_param0 []command.Name)
func (*MockBackend_UnlockCommand_OngoingVerification) GetCapturedArguments ¶
func (c *MockBackend_UnlockCommand_OngoingVerification) GetCapturedArguments() command.Name
type MockBackend_Unlock_OngoingVerification ¶
type MockBackend_Unlock_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockBackend_Unlock_OngoingVerification) GetAllCapturedArguments ¶
func (c *MockBackend_Unlock_OngoingVerification) GetAllCapturedArguments() (_param0 []models.Project, _param1 []string)
func (*MockBackend_Unlock_OngoingVerification) GetCapturedArguments ¶
func (c *MockBackend_Unlock_OngoingVerification) GetCapturedArguments() (models.Project, string)
type MockBackend_UpdateProjectStatus_OngoingVerification ¶ added in v0.19.9
type MockBackend_UpdateProjectStatus_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockBackend_UpdateProjectStatus_OngoingVerification) GetAllCapturedArguments ¶ added in v0.19.9
func (c *MockBackend_UpdateProjectStatus_OngoingVerification) GetAllCapturedArguments() (_param0 []models.PullRequest, _param1 []string, _param2 []string, _param3 []models.ProjectPlanStatus)
func (*MockBackend_UpdateProjectStatus_OngoingVerification) GetCapturedArguments ¶ added in v0.19.9
func (c *MockBackend_UpdateProjectStatus_OngoingVerification) GetCapturedArguments() (models.PullRequest, string, string, models.ProjectPlanStatus)
type MockBackend_UpdatePullWithResults_OngoingVerification ¶ added in v0.19.9
type MockBackend_UpdatePullWithResults_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockBackend_UpdatePullWithResults_OngoingVerification) GetAllCapturedArguments ¶ added in v0.19.9
func (c *MockBackend_UpdatePullWithResults_OngoingVerification) GetAllCapturedArguments() (_param0 []models.PullRequest, _param1 [][]command.ProjectResult)
func (*MockBackend_UpdatePullWithResults_OngoingVerification) GetCapturedArguments ¶ added in v0.19.9
func (c *MockBackend_UpdatePullWithResults_OngoingVerification) GetCapturedArguments() (models.PullRequest, []command.ProjectResult)
type MockLocker ¶
type MockLocker struct {
// contains filtered or unexported fields
}
func NewMockLocker ¶
func NewMockLocker(options ...pegomock.Option) *MockLocker
func (*MockLocker) FailHandler ¶
func (mock *MockLocker) FailHandler() pegomock.FailHandler
func (*MockLocker) GetLock ¶
func (mock *MockLocker) GetLock(key string) (*models.ProjectLock, error)
func (*MockLocker) List ¶
func (mock *MockLocker) List() (map[string]models.ProjectLock, error)
func (*MockLocker) SetFailHandler ¶
func (mock *MockLocker) SetFailHandler(fh pegomock.FailHandler)
func (*MockLocker) TryLock ¶
func (mock *MockLocker) TryLock(p models.Project, workspace string, pull models.PullRequest, user models.User) (locking.TryLockResponse, error)
func (*MockLocker) Unlock ¶
func (mock *MockLocker) Unlock(key string) (*models.ProjectLock, error)
func (*MockLocker) UnlockByPull ¶
func (mock *MockLocker) UnlockByPull(repoFullName string, pullNum int) ([]models.ProjectLock, error)
func (*MockLocker) VerifyWasCalled ¶
func (mock *MockLocker) VerifyWasCalled(invocationCountMatcher pegomock.InvocationCountMatcher) *VerifierMockLocker
func (*MockLocker) VerifyWasCalledEventually ¶
func (mock *MockLocker) VerifyWasCalledEventually(invocationCountMatcher pegomock.InvocationCountMatcher, timeout time.Duration) *VerifierMockLocker
func (*MockLocker) VerifyWasCalledInOrder ¶
func (mock *MockLocker) VerifyWasCalledInOrder(invocationCountMatcher pegomock.InvocationCountMatcher, inOrderContext *pegomock.InOrderContext) *VerifierMockLocker
func (*MockLocker) VerifyWasCalledOnce ¶
func (mock *MockLocker) VerifyWasCalledOnce() *VerifierMockLocker
type MockLocker_GetLock_OngoingVerification ¶
type MockLocker_GetLock_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockLocker_GetLock_OngoingVerification) GetAllCapturedArguments ¶
func (c *MockLocker_GetLock_OngoingVerification) GetAllCapturedArguments() (_param0 []string)
func (*MockLocker_GetLock_OngoingVerification) GetCapturedArguments ¶
func (c *MockLocker_GetLock_OngoingVerification) GetCapturedArguments() string
type MockLocker_List_OngoingVerification ¶
type MockLocker_List_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockLocker_List_OngoingVerification) GetAllCapturedArguments ¶
func (c *MockLocker_List_OngoingVerification) GetAllCapturedArguments()
func (*MockLocker_List_OngoingVerification) GetCapturedArguments ¶
func (c *MockLocker_List_OngoingVerification) GetCapturedArguments()
type MockLocker_TryLock_OngoingVerification ¶
type MockLocker_TryLock_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockLocker_TryLock_OngoingVerification) GetAllCapturedArguments ¶
func (c *MockLocker_TryLock_OngoingVerification) GetAllCapturedArguments() (_param0 []models.Project, _param1 []string, _param2 []models.PullRequest, _param3 []models.User)
func (*MockLocker_TryLock_OngoingVerification) GetCapturedArguments ¶
func (c *MockLocker_TryLock_OngoingVerification) GetCapturedArguments() (models.Project, string, models.PullRequest, models.User)
type MockLocker_UnlockByPull_OngoingVerification ¶
type MockLocker_UnlockByPull_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockLocker_UnlockByPull_OngoingVerification) GetAllCapturedArguments ¶
func (c *MockLocker_UnlockByPull_OngoingVerification) GetAllCapturedArguments() (_param0 []string, _param1 []int)
func (*MockLocker_UnlockByPull_OngoingVerification) GetCapturedArguments ¶
func (c *MockLocker_UnlockByPull_OngoingVerification) GetCapturedArguments() (string, int)
type MockLocker_Unlock_OngoingVerification ¶
type MockLocker_Unlock_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockLocker_Unlock_OngoingVerification) GetAllCapturedArguments ¶
func (c *MockLocker_Unlock_OngoingVerification) GetAllCapturedArguments() (_param0 []string)
func (*MockLocker_Unlock_OngoingVerification) GetCapturedArguments ¶
func (c *MockLocker_Unlock_OngoingVerification) GetCapturedArguments() string
type VerifierMockApplyLockChecker ¶
type VerifierMockApplyLockChecker struct {
// contains filtered or unexported fields
}
func (*VerifierMockApplyLockChecker) CheckApplyLock ¶
func (verifier *VerifierMockApplyLockChecker) CheckApplyLock() *MockApplyLockChecker_CheckApplyLock_OngoingVerification
type VerifierMockApplyLocker ¶
type VerifierMockApplyLocker struct {
// contains filtered or unexported fields
}
func (*VerifierMockApplyLocker) CheckApplyLock ¶
func (verifier *VerifierMockApplyLocker) CheckApplyLock() *MockApplyLocker_CheckApplyLock_OngoingVerification
func (*VerifierMockApplyLocker) LockApply ¶
func (verifier *VerifierMockApplyLocker) LockApply() *MockApplyLocker_LockApply_OngoingVerification
func (*VerifierMockApplyLocker) UnlockApply ¶
func (verifier *VerifierMockApplyLocker) UnlockApply() *MockApplyLocker_UnlockApply_OngoingVerification
type VerifierMockBackend ¶
type VerifierMockBackend struct {
// contains filtered or unexported fields
}
func (*VerifierMockBackend) CheckCommandLock ¶
func (verifier *VerifierMockBackend) CheckCommandLock(cmdName command.Name) *MockBackend_CheckCommandLock_OngoingVerification
func (*VerifierMockBackend) DeletePullStatus ¶ added in v0.19.9
func (verifier *VerifierMockBackend) DeletePullStatus(pull models.PullRequest) *MockBackend_DeletePullStatus_OngoingVerification
func (*VerifierMockBackend) GetLock ¶
func (verifier *VerifierMockBackend) GetLock(project models.Project, workspace string) *MockBackend_GetLock_OngoingVerification
func (*VerifierMockBackend) GetPullStatus ¶ added in v0.19.9
func (verifier *VerifierMockBackend) GetPullStatus(pull models.PullRequest) *MockBackend_GetPullStatus_OngoingVerification
func (*VerifierMockBackend) List ¶
func (verifier *VerifierMockBackend) List() *MockBackend_List_OngoingVerification
func (*VerifierMockBackend) LockCommand ¶
func (verifier *VerifierMockBackend) LockCommand(cmdName command.Name, lockTime time.Time) *MockBackend_LockCommand_OngoingVerification
func (*VerifierMockBackend) TryLock ¶
func (verifier *VerifierMockBackend) TryLock(lock models.ProjectLock) *MockBackend_TryLock_OngoingVerification
func (*VerifierMockBackend) Unlock ¶
func (verifier *VerifierMockBackend) Unlock(project models.Project, workspace string) *MockBackend_Unlock_OngoingVerification
func (*VerifierMockBackend) UnlockByPull ¶
func (verifier *VerifierMockBackend) UnlockByPull(repoFullName string, pullNum int) *MockBackend_UnlockByPull_OngoingVerification
func (*VerifierMockBackend) UnlockCommand ¶
func (verifier *VerifierMockBackend) UnlockCommand(cmdName command.Name) *MockBackend_UnlockCommand_OngoingVerification
func (*VerifierMockBackend) UpdateProjectStatus ¶ added in v0.19.9
func (verifier *VerifierMockBackend) UpdateProjectStatus(pull models.PullRequest, workspace string, repoRelDir string, newStatus models.ProjectPlanStatus) *MockBackend_UpdateProjectStatus_OngoingVerification
func (*VerifierMockBackend) UpdatePullWithResults ¶ added in v0.19.9
func (verifier *VerifierMockBackend) UpdatePullWithResults(pull models.PullRequest, newResults []command.ProjectResult) *MockBackend_UpdatePullWithResults_OngoingVerification
type VerifierMockLocker ¶
type VerifierMockLocker struct {
// contains filtered or unexported fields
}
func (*VerifierMockLocker) GetLock ¶
func (verifier *VerifierMockLocker) GetLock(key string) *MockLocker_GetLock_OngoingVerification
func (*VerifierMockLocker) List ¶
func (verifier *VerifierMockLocker) List() *MockLocker_List_OngoingVerification
func (*VerifierMockLocker) TryLock ¶
func (verifier *VerifierMockLocker) TryLock(p models.Project, workspace string, pull models.PullRequest, user models.User) *MockLocker_TryLock_OngoingVerification
func (*VerifierMockLocker) Unlock ¶
func (verifier *VerifierMockLocker) Unlock(key string) *MockLocker_Unlock_OngoingVerification
func (*VerifierMockLocker) UnlockByPull ¶
func (verifier *VerifierMockLocker) UnlockByPull(repoFullName string, pullNum int) *MockLocker_UnlockByPull_OngoingVerification
Click to show internal directories.
Click to hide internal directories.