Documentation ¶
Overview ¶
Package mocktokenauthenticatorcloser is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockTokenAuthenticatorCloser ¶
type MockTokenAuthenticatorCloser struct {
// contains filtered or unexported fields
}
MockTokenAuthenticatorCloser is a mock of TokenAuthenticatorCloser interface.
func NewMockTokenAuthenticatorCloser ¶
func NewMockTokenAuthenticatorCloser(ctrl *gomock.Controller) *MockTokenAuthenticatorCloser
NewMockTokenAuthenticatorCloser creates a new mock instance.
func (*MockTokenAuthenticatorCloser) AuthenticateToken ¶
func (m *MockTokenAuthenticatorCloser) AuthenticateToken(arg0 context.Context, arg1 string) (*authenticator.Response, bool, error)
AuthenticateToken mocks base method.
func (*MockTokenAuthenticatorCloser) Close ¶
func (m *MockTokenAuthenticatorCloser) Close()
Close mocks base method.
func (*MockTokenAuthenticatorCloser) EXPECT ¶
func (m *MockTokenAuthenticatorCloser) EXPECT() *MockTokenAuthenticatorCloserMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockTokenAuthenticatorCloserMockRecorder ¶
type MockTokenAuthenticatorCloserMockRecorder struct {
// contains filtered or unexported fields
}
MockTokenAuthenticatorCloserMockRecorder is the mock recorder for MockTokenAuthenticatorCloser.
func (*MockTokenAuthenticatorCloserMockRecorder) AuthenticateToken ¶
func (mr *MockTokenAuthenticatorCloserMockRecorder) AuthenticateToken(arg0, arg1 interface{}) *gomock.Call
AuthenticateToken indicates an expected call of AuthenticateToken.
func (*MockTokenAuthenticatorCloserMockRecorder) Close ¶
func (mr *MockTokenAuthenticatorCloserMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
type TokenAuthenticatorCloser ¶
type TokenAuthenticatorCloser interface { authenticator.Token pinnipedauthenticator.Closer }
TokenAuthenticatorCloser is a type that can authenticate tokens and be closed idempotently.
This type is slightly different from io.Closer, because io.Closer can return an error and is not necessarily idempotent.