Documentation ¶
Index ¶
- type Backend_GetLock_OngoingVerification
- type Backend_List_OngoingVerification
- type Backend_TryLock_OngoingVerification
- type Backend_UnlockByPull_OngoingVerification
- type Backend_Unlock_OngoingVerification
- type Locker_GetLock_OngoingVerification
- type Locker_List_OngoingVerification
- type Locker_TryLock_OngoingVerification
- type Locker_UnlockByPull_OngoingVerification
- type Locker_Unlock_OngoingVerification
- type MockBackend
- func (mock *MockBackend) GetLock(project models.Project, env string) (*models.ProjectLock, error)
- func (mock *MockBackend) List() ([]models.ProjectLock, error)
- func (mock *MockBackend) TryLock(lock models.ProjectLock) (bool, models.ProjectLock, error)
- func (mock *MockBackend) Unlock(project models.Project, env string) (*models.ProjectLock, error)
- func (mock *MockBackend) UnlockByPull(repoFullName string, pullNum int) ([]models.ProjectLock, error)
- func (mock *MockBackend) VerifyWasCalled(invocationCountMatcher pegomock.Matcher) *VerifierBackend
- func (mock *MockBackend) VerifyWasCalledInOrder(invocationCountMatcher pegomock.Matcher, ...) *VerifierBackend
- func (mock *MockBackend) VerifyWasCalledOnce() *VerifierBackend
- type MockLocker
- func (mock *MockLocker) GetLock(key string) (*models.ProjectLock, error)
- func (mock *MockLocker) List() (map[string]models.ProjectLock, error)
- func (mock *MockLocker) TryLock(p models.Project, env 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.Matcher) *VerifierLocker
- func (mock *MockLocker) VerifyWasCalledInOrder(invocationCountMatcher pegomock.Matcher, ...) *VerifierLocker
- func (mock *MockLocker) VerifyWasCalledOnce() *VerifierLocker
- type VerifierBackend
- func (verifier *VerifierBackend) GetLock(project models.Project, env string) *Backend_GetLock_OngoingVerification
- func (verifier *VerifierBackend) List() *Backend_List_OngoingVerification
- func (verifier *VerifierBackend) TryLock(lock models.ProjectLock) *Backend_TryLock_OngoingVerification
- func (verifier *VerifierBackend) Unlock(project models.Project, env string) *Backend_Unlock_OngoingVerification
- func (verifier *VerifierBackend) UnlockByPull(repoFullName string, pullNum int) *Backend_UnlockByPull_OngoingVerification
- type VerifierLocker
- func (verifier *VerifierLocker) GetLock(key string) *Locker_GetLock_OngoingVerification
- func (verifier *VerifierLocker) List() *Locker_List_OngoingVerification
- func (verifier *VerifierLocker) TryLock(p models.Project, env string, pull models.PullRequest, user models.User) *Locker_TryLock_OngoingVerification
- func (verifier *VerifierLocker) Unlock(key string) *Locker_Unlock_OngoingVerification
- func (verifier *VerifierLocker) UnlockByPull(repoFullName string, pullNum int) *Locker_UnlockByPull_OngoingVerification
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend_GetLock_OngoingVerification ¶
type Backend_GetLock_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*Backend_GetLock_OngoingVerification) GetAllCapturedArguments ¶
func (c *Backend_GetLock_OngoingVerification) GetAllCapturedArguments() (_param0 []models.Project, _param1 []string)
func (*Backend_GetLock_OngoingVerification) GetCapturedArguments ¶
func (c *Backend_GetLock_OngoingVerification) GetCapturedArguments() (models.Project, string)
type Backend_List_OngoingVerification ¶
type Backend_List_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*Backend_List_OngoingVerification) GetAllCapturedArguments ¶
func (c *Backend_List_OngoingVerification) GetAllCapturedArguments()
func (*Backend_List_OngoingVerification) GetCapturedArguments ¶
func (c *Backend_List_OngoingVerification) GetCapturedArguments()
type Backend_TryLock_OngoingVerification ¶
type Backend_TryLock_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*Backend_TryLock_OngoingVerification) GetAllCapturedArguments ¶
func (c *Backend_TryLock_OngoingVerification) GetAllCapturedArguments() (_param0 []models.ProjectLock)
func (*Backend_TryLock_OngoingVerification) GetCapturedArguments ¶
func (c *Backend_TryLock_OngoingVerification) GetCapturedArguments() models.ProjectLock
type Backend_UnlockByPull_OngoingVerification ¶
type Backend_UnlockByPull_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*Backend_UnlockByPull_OngoingVerification) GetAllCapturedArguments ¶
func (c *Backend_UnlockByPull_OngoingVerification) GetAllCapturedArguments() (_param0 []string, _param1 []int)
func (*Backend_UnlockByPull_OngoingVerification) GetCapturedArguments ¶
func (c *Backend_UnlockByPull_OngoingVerification) GetCapturedArguments() (string, int)
type Backend_Unlock_OngoingVerification ¶
type Backend_Unlock_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*Backend_Unlock_OngoingVerification) GetAllCapturedArguments ¶
func (c *Backend_Unlock_OngoingVerification) GetAllCapturedArguments() (_param0 []models.Project, _param1 []string)
func (*Backend_Unlock_OngoingVerification) GetCapturedArguments ¶
func (c *Backend_Unlock_OngoingVerification) GetCapturedArguments() (models.Project, string)
type Locker_GetLock_OngoingVerification ¶
type Locker_GetLock_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*Locker_GetLock_OngoingVerification) GetAllCapturedArguments ¶
func (c *Locker_GetLock_OngoingVerification) GetAllCapturedArguments() (_param0 []string)
func (*Locker_GetLock_OngoingVerification) GetCapturedArguments ¶
func (c *Locker_GetLock_OngoingVerification) GetCapturedArguments() string
type Locker_List_OngoingVerification ¶
type Locker_List_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*Locker_List_OngoingVerification) GetAllCapturedArguments ¶
func (c *Locker_List_OngoingVerification) GetAllCapturedArguments()
func (*Locker_List_OngoingVerification) GetCapturedArguments ¶
func (c *Locker_List_OngoingVerification) GetCapturedArguments()
type Locker_TryLock_OngoingVerification ¶
type Locker_TryLock_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*Locker_TryLock_OngoingVerification) GetAllCapturedArguments ¶
func (c *Locker_TryLock_OngoingVerification) GetAllCapturedArguments() (_param0 []models.Project, _param1 []string, _param2 []models.PullRequest, _param3 []models.User)
func (*Locker_TryLock_OngoingVerification) GetCapturedArguments ¶
func (c *Locker_TryLock_OngoingVerification) GetCapturedArguments() (models.Project, string, models.PullRequest, models.User)
type Locker_UnlockByPull_OngoingVerification ¶
type Locker_UnlockByPull_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*Locker_UnlockByPull_OngoingVerification) GetAllCapturedArguments ¶
func (c *Locker_UnlockByPull_OngoingVerification) GetAllCapturedArguments() (_param0 []string, _param1 []int)
func (*Locker_UnlockByPull_OngoingVerification) GetCapturedArguments ¶
func (c *Locker_UnlockByPull_OngoingVerification) GetCapturedArguments() (string, int)
type Locker_Unlock_OngoingVerification ¶
type Locker_Unlock_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*Locker_Unlock_OngoingVerification) GetAllCapturedArguments ¶
func (c *Locker_Unlock_OngoingVerification) GetAllCapturedArguments() (_param0 []string)
func (*Locker_Unlock_OngoingVerification) GetCapturedArguments ¶
func (c *Locker_Unlock_OngoingVerification) GetCapturedArguments() string
type MockBackend ¶
type MockBackend struct {
// contains filtered or unexported fields
}
func NewMockBackend ¶
func NewMockBackend() *MockBackend
func (*MockBackend) GetLock ¶
func (mock *MockBackend) GetLock(project models.Project, env string) (*models.ProjectLock, error)
func (*MockBackend) List ¶
func (mock *MockBackend) List() ([]models.ProjectLock, error)
func (*MockBackend) TryLock ¶
func (mock *MockBackend) TryLock(lock models.ProjectLock) (bool, models.ProjectLock, error)
func (*MockBackend) Unlock ¶
func (mock *MockBackend) Unlock(project models.Project, env string) (*models.ProjectLock, error)
func (*MockBackend) UnlockByPull ¶
func (mock *MockBackend) UnlockByPull(repoFullName string, pullNum int) ([]models.ProjectLock, error)
func (*MockBackend) VerifyWasCalled ¶
func (mock *MockBackend) VerifyWasCalled(invocationCountMatcher pegomock.Matcher) *VerifierBackend
func (*MockBackend) VerifyWasCalledInOrder ¶
func (mock *MockBackend) VerifyWasCalledInOrder(invocationCountMatcher pegomock.Matcher, inOrderContext *pegomock.InOrderContext) *VerifierBackend
func (*MockBackend) VerifyWasCalledOnce ¶
func (mock *MockBackend) VerifyWasCalledOnce() *VerifierBackend
type MockLocker ¶
type MockLocker struct {
// contains filtered or unexported fields
}
func NewMockLocker ¶
func NewMockLocker() *MockLocker
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) TryLock ¶
func (mock *MockLocker) TryLock(p models.Project, env 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.Matcher) *VerifierLocker
func (*MockLocker) VerifyWasCalledInOrder ¶
func (mock *MockLocker) VerifyWasCalledInOrder(invocationCountMatcher pegomock.Matcher, inOrderContext *pegomock.InOrderContext) *VerifierLocker
func (*MockLocker) VerifyWasCalledOnce ¶
func (mock *MockLocker) VerifyWasCalledOnce() *VerifierLocker
type VerifierBackend ¶
type VerifierBackend struct {
// contains filtered or unexported fields
}
func (*VerifierBackend) GetLock ¶
func (verifier *VerifierBackend) GetLock(project models.Project, env string) *Backend_GetLock_OngoingVerification
func (*VerifierBackend) List ¶
func (verifier *VerifierBackend) List() *Backend_List_OngoingVerification
func (*VerifierBackend) TryLock ¶
func (verifier *VerifierBackend) TryLock(lock models.ProjectLock) *Backend_TryLock_OngoingVerification
func (*VerifierBackend) Unlock ¶
func (verifier *VerifierBackend) Unlock(project models.Project, env string) *Backend_Unlock_OngoingVerification
func (*VerifierBackend) UnlockByPull ¶
func (verifier *VerifierBackend) UnlockByPull(repoFullName string, pullNum int) *Backend_UnlockByPull_OngoingVerification
type VerifierLocker ¶
type VerifierLocker struct {
// contains filtered or unexported fields
}
func (*VerifierLocker) GetLock ¶
func (verifier *VerifierLocker) GetLock(key string) *Locker_GetLock_OngoingVerification
func (*VerifierLocker) List ¶
func (verifier *VerifierLocker) List() *Locker_List_OngoingVerification
func (*VerifierLocker) TryLock ¶
func (verifier *VerifierLocker) TryLock(p models.Project, env string, pull models.PullRequest, user models.User) *Locker_TryLock_OngoingVerification
func (*VerifierLocker) Unlock ¶
func (verifier *VerifierLocker) Unlock(key string) *Locker_Unlock_OngoingVerification
func (*VerifierLocker) UnlockByPull ¶
func (verifier *VerifierLocker) UnlockByPull(repoFullName string, pullNum int) *Locker_UnlockByPull_OngoingVerification
Click to show internal directories.
Click to hide internal directories.