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]>
111 lines
3.5 KiB
Go
111 lines
3.5 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: control_plane_agent.go
|
|
//
|
|
// Generated by this command:
|
|
//
|
|
// mockgen -source control_plane_agent.go -destination control_plane_agent_generated.go -package jwt . ControlPlaneAgent
|
|
//
|
|
|
|
// Package jwt is a generated GoMock package.
|
|
package jwt
|
|
|
|
import (
|
|
reflect "reflect"
|
|
|
|
gomock "go.uber.org/mock/gomock"
|
|
)
|
|
|
|
// MockControlPlaneAgent is a mock of ControlPlaneAgent interface.
|
|
type MockControlPlaneAgent struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockControlPlaneAgentMockRecorder
|
|
isgomock struct{}
|
|
}
|
|
|
|
// MockControlPlaneAgentMockRecorder is the mock recorder for MockControlPlaneAgent.
|
|
type MockControlPlaneAgentMockRecorder struct {
|
|
mock *MockControlPlaneAgent
|
|
}
|
|
|
|
// NewMockControlPlaneAgent creates a new mock instance.
|
|
func NewMockControlPlaneAgent(ctrl *gomock.Controller) *MockControlPlaneAgent {
|
|
mock := &MockControlPlaneAgent{ctrl: ctrl}
|
|
mock.recorder = &MockControlPlaneAgentMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockControlPlaneAgent) EXPECT() *MockControlPlaneAgentMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// GetClientID mocks base method.
|
|
func (m *MockControlPlaneAgent) GetClientID() string {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetClientID")
|
|
ret0, _ := ret[0].(string)
|
|
return ret0
|
|
}
|
|
|
|
// GetClientID indicates an expected call of GetClientID.
|
|
func (mr *MockControlPlaneAgentMockRecorder) GetClientID() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetClientID", reflect.TypeOf((*MockControlPlaneAgent)(nil).GetClientID))
|
|
}
|
|
|
|
// GetOrganizationID mocks base method.
|
|
func (m *MockControlPlaneAgent) GetOrganizationID() string {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetOrganizationID")
|
|
ret0, _ := ret[0].(string)
|
|
return ret0
|
|
}
|
|
|
|
// GetOrganizationID indicates an expected call of GetOrganizationID.
|
|
func (mr *MockControlPlaneAgentMockRecorder) GetOrganizationID() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOrganizationID", reflect.TypeOf((*MockControlPlaneAgent)(nil).GetOrganizationID))
|
|
}
|
|
|
|
// GetScopes mocks base method.
|
|
func (m *MockControlPlaneAgent) GetScopes() []string {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetScopes")
|
|
ret0, _ := ret[0].([]string)
|
|
return ret0
|
|
}
|
|
|
|
// GetScopes indicates an expected call of GetScopes.
|
|
func (mr *MockControlPlaneAgentMockRecorder) GetScopes() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetScopes", reflect.TypeOf((*MockControlPlaneAgent)(nil).GetScopes))
|
|
}
|
|
|
|
// HasScope mocks base method.
|
|
func (m *MockControlPlaneAgent) HasScope(scope string) bool {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "HasScope", scope)
|
|
ret0, _ := ret[0].(bool)
|
|
return ret0
|
|
}
|
|
|
|
// HasScope indicates an expected call of HasScope.
|
|
func (mr *MockControlPlaneAgentMockRecorder) HasScope(scope any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HasScope", reflect.TypeOf((*MockControlPlaneAgent)(nil).HasScope), scope)
|
|
}
|
|
|
|
// Subject mocks base method.
|
|
func (m *MockControlPlaneAgent) Subject() string {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Subject")
|
|
ret0, _ := ret[0].(string)
|
|
return ret0
|
|
}
|
|
|
|
// Subject indicates an expected call of Subject.
|
|
func (mr *MockControlPlaneAgentMockRecorder) Subject() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Subject", reflect.TypeOf((*MockControlPlaneAgent)(nil).Subject))
|
|
}
|