k8s.io/kubernetes@v1.31.0-alpha.0.0.20240520171757-56147500dadc/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  // Generated by this command:
    21  //
    22  //	mockgen -source=handlers.go -destination=handlers.mock.go -package=oidc TokenHandler JWKsHandler
    23  //
    24  
    25  // Package oidc is a generated GoMock package.
    26  package oidc
    27  
    28  import (
    29  	reflect "reflect"
    30  
    31  	gomock "go.uber.org/mock/gomock"
    32  	jose "gopkg.in/square/go-jose.v2"
    33  )
    34  
    35  // MockTokenHandler is a mock of TokenHandler interface.
    36  type MockTokenHandler struct {
    37  	ctrl     *gomock.Controller
    38  	recorder *MockTokenHandlerMockRecorder
    39  }
    40  
    41  // MockTokenHandlerMockRecorder is the mock recorder for MockTokenHandler.
    42  type MockTokenHandlerMockRecorder struct {
    43  	mock *MockTokenHandler
    44  }
    45  
    46  // NewMockTokenHandler creates a new mock instance.
    47  func NewMockTokenHandler(ctrl *gomock.Controller) *MockTokenHandler {
    48  	mock := &MockTokenHandler{ctrl: ctrl}
    49  	mock.recorder = &MockTokenHandlerMockRecorder{mock}
    50  	return mock
    51  }
    52  
    53  // EXPECT returns an object that allows the caller to indicate expected use.
    54  func (m *MockTokenHandler) EXPECT() *MockTokenHandlerMockRecorder {
    55  	return m.recorder
    56  }
    57  
    58  // Token mocks base method.
    59  func (m *MockTokenHandler) Token() (Token, error) {
    60  	m.ctrl.T.Helper()
    61  	ret := m.ctrl.Call(m, "Token")
    62  	ret0, _ := ret[0].(Token)
    63  	ret1, _ := ret[1].(error)
    64  	return ret0, ret1
    65  }
    66  
    67  // Token indicates an expected call of Token.
    68  func (mr *MockTokenHandlerMockRecorder) Token() *gomock.Call {
    69  	mr.mock.ctrl.T.Helper()
    70  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Token", reflect.TypeOf((*MockTokenHandler)(nil).Token))
    71  }
    72  
    73  // MockJWKsHandler is a mock of JWKsHandler interface.
    74  type MockJWKsHandler struct {
    75  	ctrl     *gomock.Controller
    76  	recorder *MockJWKsHandlerMockRecorder
    77  }
    78  
    79  // MockJWKsHandlerMockRecorder is the mock recorder for MockJWKsHandler.
    80  type MockJWKsHandlerMockRecorder struct {
    81  	mock *MockJWKsHandler
    82  }
    83  
    84  // NewMockJWKsHandler creates a new mock instance.
    85  func NewMockJWKsHandler(ctrl *gomock.Controller) *MockJWKsHandler {
    86  	mock := &MockJWKsHandler{ctrl: ctrl}
    87  	mock.recorder = &MockJWKsHandlerMockRecorder{mock}
    88  	return mock
    89  }
    90  
    91  // EXPECT returns an object that allows the caller to indicate expected use.
    92  func (m *MockJWKsHandler) EXPECT() *MockJWKsHandlerMockRecorder {
    93  	return m.recorder
    94  }
    95  
    96  // KeySet mocks base method.
    97  func (m *MockJWKsHandler) KeySet() jose.JSONWebKeySet {
    98  	m.ctrl.T.Helper()
    99  	ret := m.ctrl.Call(m, "KeySet")
   100  	ret0, _ := ret[0].(jose.JSONWebKeySet)
   101  	return ret0
   102  }
   103  
   104  // KeySet indicates an expected call of KeySet.
   105  func (mr *MockJWKsHandlerMockRecorder) KeySet() *gomock.Call {
   106  	mr.mock.ctrl.T.Helper()
   107  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "KeySet", reflect.TypeOf((*MockJWKsHandler)(nil).KeySet))
   108  }