k8s.io/kubernetes@v1.29.3/test/utils/oidc/handlers.mock.go (about)

     1  /*
     2  Copyright The Kubernetes Authors.
     3  
     4  Licensed under the Apache License, Version 2.0 (the "License");
     5  you may not use this file except in compliance with the License.
     6  You may obtain a copy of the License at
     7  
     8      http://www.apache.org/licenses/LICENSE-2.0
     9  
    10  Unless required by applicable law or agreed to in writing, software
    11  distributed under the License is distributed on an "AS IS" BASIS,
    12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13  See the License for the specific language governing permissions and
    14  limitations under the License.
    15  */
    16  
    17  // Code generated by MockGen. DO NOT EDIT.
    18  // Source: handlers.go
    19  
    20  // Package oidc is a generated GoMock package.
    21  package oidc
    22  
    23  import (
    24  	reflect "reflect"
    25  
    26  	gomock "github.com/golang/mock/gomock"
    27  	go_jose_v2 "gopkg.in/square/go-jose.v2"
    28  )
    29  
    30  // MockTokenHandler is a mock of TokenHandler interface.
    31  type MockTokenHandler struct {
    32  	ctrl     *gomock.Controller
    33  	recorder *MockTokenHandlerMockRecorder
    34  }
    35  
    36  // MockTokenHandlerMockRecorder is the mock recorder for MockTokenHandler.
    37  type MockTokenHandlerMockRecorder struct {
    38  	mock *MockTokenHandler
    39  }
    40  
    41  // NewMockTokenHandler creates a new mock instance.
    42  func NewMockTokenHandler(ctrl *gomock.Controller) *MockTokenHandler {
    43  	mock := &MockTokenHandler{ctrl: ctrl}
    44  	mock.recorder = &MockTokenHandlerMockRecorder{mock}
    45  	return mock
    46  }
    47  
    48  // EXPECT returns an object that allows the caller to indicate expected use.
    49  func (m *MockTokenHandler) EXPECT() *MockTokenHandlerMockRecorder {
    50  	return m.recorder
    51  }
    52  
    53  // Token mocks base method.
    54  func (m *MockTokenHandler) Token() (Token, error) {
    55  	m.ctrl.T.Helper()
    56  	ret := m.ctrl.Call(m, "Token")
    57  	ret0, _ := ret[0].(Token)
    58  	ret1, _ := ret[1].(error)
    59  	return ret0, ret1
    60  }
    61  
    62  // Token indicates an expected call of Token.
    63  func (mr *MockTokenHandlerMockRecorder) Token() *gomock.Call {
    64  	mr.mock.ctrl.T.Helper()
    65  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Token", reflect.TypeOf((*MockTokenHandler)(nil).Token))
    66  }
    67  
    68  // MockJWKsHandler is a mock of JWKsHandler interface.
    69  type MockJWKsHandler struct {
    70  	ctrl     *gomock.Controller
    71  	recorder *MockJWKsHandlerMockRecorder
    72  }
    73  
    74  // MockJWKsHandlerMockRecorder is the mock recorder for MockJWKsHandler.
    75  type MockJWKsHandlerMockRecorder struct {
    76  	mock *MockJWKsHandler
    77  }
    78  
    79  // NewMockJWKsHandler creates a new mock instance.
    80  func NewMockJWKsHandler(ctrl *gomock.Controller) *MockJWKsHandler {
    81  	mock := &MockJWKsHandler{ctrl: ctrl}
    82  	mock.recorder = &MockJWKsHandlerMockRecorder{mock}
    83  	return mock
    84  }
    85  
    86  // EXPECT returns an object that allows the caller to indicate expected use.
    87  func (m *MockJWKsHandler) EXPECT() *MockJWKsHandlerMockRecorder {
    88  	return m.recorder
    89  }
    90  
    91  // KeySet mocks base method.
    92  func (m *MockJWKsHandler) KeySet() go_jose_v2.JSONWebKeySet {
    93  	m.ctrl.T.Helper()
    94  	ret := m.ctrl.Call(m, "KeySet")
    95  	ret0, _ := ret[0].(go_jose_v2.JSONWebKeySet)
    96  	return ret0
    97  }
    98  
    99  // KeySet indicates an expected call of KeySet.
   100  func (mr *MockJWKsHandlerMockRecorder) KeySet() *gomock.Call {
   101  	mr.mock.ctrl.T.Helper()
   102  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "KeySet", reflect.TypeOf((*MockJWKsHandler)(nil).KeySet))
   103  }