2023-01-17 23:54:16 +00:00
|
|
|
// Copyright 2020-2023 the Pinniped contributors. All Rights Reserved.
|
2020-09-21 16:37:54 +00:00
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
//
|
|
|
|
|
|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
2021-03-13 00:09:16 +00:00
|
|
|
// Source: go.pinniped.dev/internal/registry/credentialrequest (interfaces: TokenCredentialRequestAuthenticator)
|
2020-09-21 16:37:54 +00:00
|
|
|
|
|
|
|
// Package credentialrequestmocks is a generated GoMock package.
|
|
|
|
package credentialrequestmocks
|
|
|
|
|
|
|
|
import (
|
|
|
|
context "context"
|
|
|
|
reflect "reflect"
|
2020-10-30 14:34:43 +00:00
|
|
|
|
|
|
|
gomock "github.com/golang/mock/gomock"
|
2021-02-16 19:00:08 +00:00
|
|
|
login "go.pinniped.dev/generated/latest/apis/concierge/login"
|
2021-03-01 16:08:57 +00:00
|
|
|
user "k8s.io/apiserver/pkg/authentication/user"
|
2020-09-21 16:37:54 +00:00
|
|
|
)
|
|
|
|
|
2021-03-01 16:08:57 +00:00
|
|
|
// MockTokenCredentialRequestAuthenticator is a mock of TokenCredentialRequestAuthenticator interface.
|
2020-09-21 16:37:54 +00:00
|
|
|
type MockTokenCredentialRequestAuthenticator struct {
|
|
|
|
ctrl *gomock.Controller
|
|
|
|
recorder *MockTokenCredentialRequestAuthenticatorMockRecorder
|
|
|
|
}
|
|
|
|
|
2021-03-01 16:08:57 +00:00
|
|
|
// MockTokenCredentialRequestAuthenticatorMockRecorder is the mock recorder for MockTokenCredentialRequestAuthenticator.
|
2020-09-21 16:37:54 +00:00
|
|
|
type MockTokenCredentialRequestAuthenticatorMockRecorder struct {
|
|
|
|
mock *MockTokenCredentialRequestAuthenticator
|
|
|
|
}
|
|
|
|
|
2021-03-01 16:08:57 +00:00
|
|
|
// NewMockTokenCredentialRequestAuthenticator creates a new mock instance.
|
2020-09-21 16:37:54 +00:00
|
|
|
func NewMockTokenCredentialRequestAuthenticator(ctrl *gomock.Controller) *MockTokenCredentialRequestAuthenticator {
|
|
|
|
mock := &MockTokenCredentialRequestAuthenticator{ctrl: ctrl}
|
|
|
|
mock.recorder = &MockTokenCredentialRequestAuthenticatorMockRecorder{mock}
|
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2021-03-01 16:08:57 +00:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
2020-09-21 16:37:54 +00:00
|
|
|
func (m *MockTokenCredentialRequestAuthenticator) EXPECT() *MockTokenCredentialRequestAuthenticatorMockRecorder {
|
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
2021-03-01 16:08:57 +00:00
|
|
|
// AuthenticateTokenCredentialRequest mocks base method.
|
2020-09-21 16:37:54 +00:00
|
|
|
func (m *MockTokenCredentialRequestAuthenticator) AuthenticateTokenCredentialRequest(arg0 context.Context, arg1 *login.TokenCredentialRequest) (user.Info, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "AuthenticateTokenCredentialRequest", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].(user.Info)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2021-03-01 16:08:57 +00:00
|
|
|
// AuthenticateTokenCredentialRequest indicates an expected call of AuthenticateTokenCredentialRequest.
|
2020-09-21 16:37:54 +00:00
|
|
|
func (mr *MockTokenCredentialRequestAuthenticatorMockRecorder) AuthenticateTokenCredentialRequest(arg0, arg1 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthenticateTokenCredentialRequest", reflect.TypeOf((*MockTokenCredentialRequestAuthenticator)(nil).AuthenticateTokenCredentialRequest), arg0, arg1)
|
|
|
|
}
|