Documentation ¶
Overview ¶
Package pdmock is a generated GoMock package.
Index ¶
- type MockPagerDutyClient
- func (m *MockPagerDutyClient) CreateIncident(description string) (string, error)
- func (m *MockPagerDutyClient) EXPECT() *MockPagerDutyClientMockRecorder
- func (m *MockPagerDutyClient) GetClusterID(pdClient *pagerduty.Client, incidentID string) (string, error)
- func (m *MockPagerDutyClient) GetClusterIDFromAlert(alert *pagerduty.IncidentAlert) (string, error)
- func (m *MockPagerDutyClient) GetClusterIDFromAlertList(alertList *pagerduty.ListAlertsResponse) (string, error)
- type MockPagerDutyClientMockRecorder
- func (mr *MockPagerDutyClientMockRecorder) CreateIncident(description interface{}) *gomock.Call
- func (mr *MockPagerDutyClientMockRecorder) GetClusterID(pdClient, incidentID interface{}) *gomock.Call
- func (mr *MockPagerDutyClientMockRecorder) GetClusterIDFromAlert(alert interface{}) *gomock.Call
- func (mr *MockPagerDutyClientMockRecorder) GetClusterIDFromAlertList(alertList interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockPagerDutyClient ¶
type MockPagerDutyClient struct {
// contains filtered or unexported fields
}
MockPagerDutyClient is a mock of PagerDutyClient interface.
func NewMockPagerDutyClient ¶
func NewMockPagerDutyClient(ctrl *gomock.Controller) *MockPagerDutyClient
NewMockPagerDutyClient creates a new mock instance.
func (*MockPagerDutyClient) CreateIncident ¶
func (m *MockPagerDutyClient) CreateIncident(description string) (string, error)
CreateIncident mocks base method.
func (*MockPagerDutyClient) EXPECT ¶
func (m *MockPagerDutyClient) EXPECT() *MockPagerDutyClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPagerDutyClient) GetClusterID ¶
func (m *MockPagerDutyClient) GetClusterID(pdClient *pagerduty.Client, incidentID string) (string, error)
GetClusterID mocks base method.
func (*MockPagerDutyClient) GetClusterIDFromAlert ¶
func (m *MockPagerDutyClient) GetClusterIDFromAlert(alert *pagerduty.IncidentAlert) (string, error)
GetClusterIDFromAlert mocks base method.
func (*MockPagerDutyClient) GetClusterIDFromAlertList ¶
func (m *MockPagerDutyClient) GetClusterIDFromAlertList(alertList *pagerduty.ListAlertsResponse) (string, error)
GetClusterIDFromAlertList mocks base method.
type MockPagerDutyClientMockRecorder ¶
type MockPagerDutyClientMockRecorder struct {
// contains filtered or unexported fields
}
MockPagerDutyClientMockRecorder is the mock recorder for MockPagerDutyClient.
func (*MockPagerDutyClientMockRecorder) CreateIncident ¶
func (mr *MockPagerDutyClientMockRecorder) CreateIncident(description interface{}) *gomock.Call
CreateIncident indicates an expected call of CreateIncident.
func (*MockPagerDutyClientMockRecorder) GetClusterID ¶
func (mr *MockPagerDutyClientMockRecorder) GetClusterID(pdClient, incidentID interface{}) *gomock.Call
GetClusterID indicates an expected call of GetClusterID.
func (*MockPagerDutyClientMockRecorder) GetClusterIDFromAlert ¶
func (mr *MockPagerDutyClientMockRecorder) GetClusterIDFromAlert(alert interface{}) *gomock.Call
GetClusterIDFromAlert indicates an expected call of GetClusterIDFromAlert.
func (*MockPagerDutyClientMockRecorder) GetClusterIDFromAlertList ¶
func (mr *MockPagerDutyClientMockRecorder) GetClusterIDFromAlertList(alertList interface{}) *gomock.Call
GetClusterIDFromAlertList indicates an expected call of GetClusterIDFromAlertList.