Documentation ¶
Overview ¶
Package authentication is a generated GoMock package.
Package authentication is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authentication ¶
type Authentication interface { // Authenticate check token valid and return user identifier Authenticate(ctx context.Context, token string) (string, error) }
func NewAuthentication ¶
func NewAuthentication(client TokenClient) Authentication
type MockAuthentication ¶
type MockAuthentication struct {
// contains filtered or unexported fields
}
MockAuthentication is a mock of Authentication interface.
func NewMockAuthentication ¶
func NewMockAuthentication(ctrl *gomock.Controller) *MockAuthentication
NewMockAuthentication creates a new mock instance.
func (*MockAuthentication) Authenticate ¶
Authenticate mocks base method.
func (*MockAuthentication) EXPECT ¶
func (m *MockAuthentication) EXPECT() *MockAuthenticationMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockAuthenticationMockRecorder ¶
type MockAuthenticationMockRecorder struct {
// contains filtered or unexported fields
}
MockAuthenticationMockRecorder is the mock recorder for MockAuthentication.
func (*MockAuthenticationMockRecorder) Authenticate ¶
func (mr *MockAuthenticationMockRecorder) Authenticate(ctx, token interface{}) *gomock.Call
Authenticate indicates an expected call of Authenticate.
type MockTokenClient ¶
type MockTokenClient struct {
// contains filtered or unexported fields
}
MockTokenClient is a mock of TokenClient interface.
func NewMockTokenClient ¶
func NewMockTokenClient(ctrl *gomock.Controller) *MockTokenClient
NewMockTokenClient creates a new mock instance.
func (*MockTokenClient) EXPECT ¶
func (m *MockTokenClient) EXPECT() *MockTokenClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockTokenClientMockRecorder ¶
type MockTokenClientMockRecorder struct {
// contains filtered or unexported fields
}
MockTokenClientMockRecorder is the mock recorder for MockTokenClient.
func (*MockTokenClientMockRecorder) GetUser ¶
func (mr *MockTokenClientMockRecorder) GetUser(ctx, token interface{}) *gomock.Call
GetUser indicates an expected call of GetUser.
type TokenClient ¶
func NewBuiltInClient ¶
func NewBuiltInClient(cluster cluster.Cluster) TokenClient