pdmock

package
v0.1.30 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package pdmock is a generated GoMock package.

Index

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

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.

Jump to

Keyboard shortcuts

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