2023-01-17 23:54:16 +00:00
|
|
|
// Copyright 2020-2023 the Pinniped contributors. All Rights Reserved.
|
2020-09-11 15:34:59 +00:00
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
//
|
|
|
|
|
|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
|
|
|
// Source: k8s.io/apiserver/pkg/authentication/authenticator (interfaces: Token)
|
|
|
|
|
|
|
|
// Package mocktokenauthenticator is a generated GoMock package.
|
|
|
|
package mocktokenauthenticator
|
|
|
|
|
|
|
|
import (
|
|
|
|
context "context"
|
2021-03-01 16:08:57 +00:00
|
|
|
reflect "reflect"
|
|
|
|
|
2020-09-11 15:34:59 +00:00
|
|
|
gomock "github.com/golang/mock/gomock"
|
|
|
|
authenticator "k8s.io/apiserver/pkg/authentication/authenticator"
|
|
|
|
)
|
|
|
|
|
2021-03-01 16:08:57 +00:00
|
|
|
// MockToken is a mock of Token interface.
|
2020-09-11 15:34:59 +00:00
|
|
|
type MockToken struct {
|
|
|
|
ctrl *gomock.Controller
|
|
|
|
recorder *MockTokenMockRecorder
|
|
|
|
}
|
|
|
|
|
2021-03-01 16:08:57 +00:00
|
|
|
// MockTokenMockRecorder is the mock recorder for MockToken.
|
2020-09-11 15:34:59 +00:00
|
|
|
type MockTokenMockRecorder struct {
|
|
|
|
mock *MockToken
|
|
|
|
}
|
|
|
|
|
2021-03-01 16:08:57 +00:00
|
|
|
// NewMockToken creates a new mock instance.
|
2020-09-11 15:34:59 +00:00
|
|
|
func NewMockToken(ctrl *gomock.Controller) *MockToken {
|
|
|
|
mock := &MockToken{ctrl: ctrl}
|
|
|
|
mock.recorder = &MockTokenMockRecorder{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-11 15:34:59 +00:00
|
|
|
func (m *MockToken) EXPECT() *MockTokenMockRecorder {
|
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
2021-03-01 16:08:57 +00:00
|
|
|
// AuthenticateToken mocks base method.
|
2020-09-11 15:34:59 +00:00
|
|
|
func (m *MockToken) AuthenticateToken(arg0 context.Context, arg1 string) (*authenticator.Response, bool, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "AuthenticateToken", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].(*authenticator.Response)
|
|
|
|
ret1, _ := ret[1].(bool)
|
|
|
|
ret2, _ := ret[2].(error)
|
|
|
|
return ret0, ret1, ret2
|
|
|
|
}
|
|
|
|
|
2021-03-01 16:08:57 +00:00
|
|
|
// AuthenticateToken indicates an expected call of AuthenticateToken.
|
2020-09-11 15:34:59 +00:00
|
|
|
func (mr *MockTokenMockRecorder) AuthenticateToken(arg0, arg1 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthenticateToken", reflect.TypeOf((*MockToken)(nil).AuthenticateToken), arg0, arg1)
|
|
|
|
}
|