// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/tidbcloud/devops/pkg/service/itoken/api (interfaces: InternalTokenServiceAPI)
//
// Generated by this command:
//
//	mockgen -destination api_mock.go -package=api github.com/tidbcloud/devops/pkg/service/itoken/api InternalTokenServiceAPI
//

// Package api is a generated GoMock package.
package api

import (
	context "context"
	reflect "reflect"

	itoken "github.com/tidbcloud/devops/entity/itoken"
	gomock "go.uber.org/mock/gomock"
)

// MockInternalTokenServiceAPI is a mock of InternalTokenServiceAPI interface.
type MockInternalTokenServiceAPI struct {
	ctrl     *gomock.Controller
	recorder *MockInternalTokenServiceAPIMockRecorder
	isgomock struct{}
}

// MockInternalTokenServiceAPIMockRecorder is the mock recorder for MockInternalTokenServiceAPI.
type MockInternalTokenServiceAPIMockRecorder struct {
	mock *MockInternalTokenServiceAPI
}

// NewMockInternalTokenServiceAPI creates a new mock instance.
func NewMockInternalTokenServiceAPI(ctrl *gomock.Controller) *MockInternalTokenServiceAPI {
	mock := &MockInternalTokenServiceAPI{ctrl: ctrl}
	mock.recorder = &MockInternalTokenServiceAPIMockRecorder{mock}
	return mock
}

// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockInternalTokenServiceAPI) EXPECT() *MockInternalTokenServiceAPIMockRecorder {
	return m.recorder
}

// GetJWKS mocks base method.
func (m *MockInternalTokenServiceAPI) GetJWKS(ctx context.Context) (*itoken.JWKSet, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetJWKS", ctx)
	ret0, _ := ret[0].(*itoken.JWKSet)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetJWKS indicates an expected call of GetJWKS.
func (mr *MockInternalTokenServiceAPIMockRecorder) GetJWKS(ctx any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetJWKS", reflect.TypeOf((*MockInternalTokenServiceAPI)(nil).GetJWKS), ctx)
}

// IssueJWTToken mocks base method.
func (m *MockInternalTokenServiceAPI) IssueJWTToken(ctx context.Context, param IssueJWTTokenParam) (*itoken.IssuedJWTToken, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "IssueJWTToken", ctx, param)
	ret0, _ := ret[0].(*itoken.IssuedJWTToken)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// IssueJWTToken indicates an expected call of IssueJWTToken.
func (mr *MockInternalTokenServiceAPIMockRecorder) IssueJWTToken(ctx, param any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IssueJWTToken", reflect.TypeOf((*MockInternalTokenServiceAPI)(nil).IssueJWTToken), ctx, param)
}
