mirror of
https://github.com/hanzo-fi/go-libs.git
synced 2026-10-30 20:53:44 +00:00
* refactor: move all packages under pkg/ for v5 Move all 13 top-level Go packages into pkg/ for a cleaner repository structure. All internal import paths updated from github.com/formancehq/go-libs/v5/<pkg> to github.com/formancehq/go-libs/v5/pkg/<pkg>. Also includes cleanup: - Fix .golangci.yml stale v4 CircuitBreaker path - Replace deprecated str.Contains with stdlib slices.Contains - Update TODO(v4) markers to TODO - Delete stale coverage.txt - Fix pgtesting timeout not being propagated to docker pool - Update docs/ARCHITECTURE.md to reflect new structure Co-Authored-By: Claude Opus 4.6 <[email protected]> * chore: remove compatibility aliases, unused params, and stub files - Remove unused type aliases (Authenticator, KeySet) from authnfx - Remove unused `debug` parameter from S3ModuleFromFlags - Delete comment-only stub files in messaging/publish/circuit/ Co-Authored-By: Claude Opus 4.6 <[email protected]> * chore: rename cli.go to flags.go for consistency Standardize naming across all packages: cli.go -> flags.go since these files all serve the same purpose (flag definitions). Co-Authored-By: Claude Opus 4.6 <[email protected]> * chore: rename * chore(deps): update all dependencies Co-Authored-By: Claude Opus 4.6 <[email protected]> * fix: resolve package name mismatches in generated mocks Generated mock files had stale package names from before the pkg/ move, causing import cycles and build failures with --build-tags it. Co-Authored-By: Claude Opus 4.6 <[email protected]> --------- Co-authored-by: Claude Opus 4.6 <[email protected]>
72 lines
2.3 KiB
Go
72 lines
2.3 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: authenticator.go
|
|
//
|
|
// Generated by this command:
|
|
//
|
|
// mockgen -source authenticator.go -destination authenticator_generated.go -package jwt . Authenticator
|
|
//
|
|
|
|
// Package jwt is a generated GoMock package.
|
|
package jwt
|
|
|
|
import (
|
|
http "net/http"
|
|
reflect "reflect"
|
|
|
|
gomock "go.uber.org/mock/gomock"
|
|
)
|
|
|
|
// MockAuthenticator is a mock of Authenticator interface.
|
|
type MockAuthenticator struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockAuthenticatorMockRecorder
|
|
isgomock struct{}
|
|
}
|
|
|
|
// MockAuthenticatorMockRecorder is the mock recorder for MockAuthenticator.
|
|
type MockAuthenticatorMockRecorder struct {
|
|
mock *MockAuthenticator
|
|
}
|
|
|
|
// NewMockAuthenticator creates a new mock instance.
|
|
func NewMockAuthenticator(ctrl *gomock.Controller) *MockAuthenticator {
|
|
mock := &MockAuthenticator{ctrl: ctrl}
|
|
mock.recorder = &MockAuthenticatorMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockAuthenticator) EXPECT() *MockAuthenticatorMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// Authenticate mocks base method.
|
|
func (m *MockAuthenticator) Authenticate(w http.ResponseWriter, r *http.Request) (bool, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Authenticate", w, r)
|
|
ret0, _ := ret[0].(bool)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// Authenticate indicates an expected call of Authenticate.
|
|
func (mr *MockAuthenticatorMockRecorder) Authenticate(w, r any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Authenticate", reflect.TypeOf((*MockAuthenticator)(nil).Authenticate), w, r)
|
|
}
|
|
|
|
// AuthenticateOnControlPlane mocks base method.
|
|
func (m *MockAuthenticator) AuthenticateOnControlPlane(r *http.Request) (ControlPlaneAgent, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "AuthenticateOnControlPlane", r)
|
|
ret0, _ := ret[0].(ControlPlaneAgent)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// AuthenticateOnControlPlane indicates an expected call of AuthenticateOnControlPlane.
|
|
func (mr *MockAuthenticatorMockRecorder) AuthenticateOnControlPlane(r any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthenticateOnControlPlane", reflect.TypeOf((*MockAuthenticator)(nil).AuthenticateOnControlPlane), r)
|
|
}
|