Documentation ¶
Overview ¶
Package mock_manager is a generated GoMock package.
Package mock_manager is a generated GoMock package.
Index ¶
- type MockAuthManager
- func (m *MockAuthManager) EXPECT() *MockAuthManagerMockRecorder
- func (m *MockAuthManager) NewOAuthConfig(providerClass db.ProviderClass, cli bool) (*oauth2.Config, error)
- func (m *MockAuthManager) ValidateCredentials(ctx context.Context, providerClass db.ProviderClass, cred v1.Credential, ...) error
- type MockAuthManagerMockRecorder
- type MockProviderClassManager
- func (m *MockProviderClassManager) Build(ctx context.Context, config *db.Provider) (v1.Provider, error)
- func (m *MockProviderClassManager) Delete(ctx context.Context, config *db.Provider) error
- func (m *MockProviderClassManager) EXPECT() *MockProviderClassManagerMockRecorder
- func (m *MockProviderClassManager) GetSupportedClasses() []db.ProviderClass
- func (m *MockProviderClassManager) GetWebhookHandler() http.Handler
- func (m *MockProviderClassManager) MarshallConfig(ctx context.Context, class db.ProviderClass, config json.RawMessage) (json.RawMessage, error)
- type MockProviderClassManagerMockRecorder
- func (mr *MockProviderClassManagerMockRecorder) Build(ctx, config any) *gomock.Call
- func (mr *MockProviderClassManagerMockRecorder) Delete(ctx, config any) *gomock.Call
- func (mr *MockProviderClassManagerMockRecorder) GetSupportedClasses() *gomock.Call
- func (mr *MockProviderClassManagerMockRecorder) GetWebhookHandler() *gomock.Call
- func (mr *MockProviderClassManagerMockRecorder) MarshallConfig(ctx, class, config any) *gomock.Call
- type MockProviderManager
- func (m *MockProviderManager) BulkInstantiateByTrait(ctx context.Context, projectID uuid.UUID, trait db.ProviderType, name string) (map[uuid.UUID]manager.NameProviderTuple, []string, error)
- func (m *MockProviderManager) CreateFromConfig(ctx context.Context, providerClass db.ProviderClass, projectID uuid.UUID, ...) (*db.Provider, error)
- func (m *MockProviderManager) DeleteByID(ctx context.Context, providerID, projectID uuid.UUID) error
- func (m *MockProviderManager) DeleteByName(ctx context.Context, name string, projectID uuid.UUID) error
- func (m *MockProviderManager) EXPECT() *MockProviderManagerMockRecorder
- func (m *MockProviderManager) InstantiateFromID(ctx context.Context, providerID uuid.UUID) (v1.Provider, error)
- func (m *MockProviderManager) InstantiateFromNameProject(ctx context.Context, name string, projectID uuid.UUID) (v1.Provider, error)
- func (m *MockProviderManager) IterateWebhookHandlers() iter.Seq2[string, http.Handler]
- func (m *MockProviderManager) PatchProviderConfig(ctx context.Context, providerName string, projectID uuid.UUID, ...) error
- type MockProviderManagerMockRecorder
- func (mr *MockProviderManagerMockRecorder) BulkInstantiateByTrait(ctx, projectID, trait, name any) *gomock.Call
- func (mr *MockProviderManagerMockRecorder) CreateFromConfig(ctx, providerClass, projectID, name, config any) *gomock.Call
- func (mr *MockProviderManagerMockRecorder) DeleteByID(ctx, providerID, projectID any) *gomock.Call
- func (mr *MockProviderManagerMockRecorder) DeleteByName(ctx, name, projectID any) *gomock.Call
- func (mr *MockProviderManagerMockRecorder) InstantiateFromID(ctx, providerID any) *gomock.Call
- func (mr *MockProviderManagerMockRecorder) InstantiateFromNameProject(ctx, name, projectID any) *gomock.Call
- func (mr *MockProviderManagerMockRecorder) IterateWebhookHandlers() *gomock.Call
- func (mr *MockProviderManagerMockRecorder) PatchProviderConfig(ctx, providerName, projectID, configPatch any) *gomock.Call
- type MockproviderClassAuthManager
- type MockproviderClassAuthManagerMockRecorder
- type MockproviderClassOAuthManager
- func (m *MockproviderClassOAuthManager) Build(ctx context.Context, config *db.Provider) (v1.Provider, error)
- func (m *MockproviderClassOAuthManager) Delete(ctx context.Context, config *db.Provider) error
- func (m *MockproviderClassOAuthManager) EXPECT() *MockproviderClassOAuthManagerMockRecorder
- func (m *MockproviderClassOAuthManager) GetSupportedClasses() []db.ProviderClass
- func (m *MockproviderClassOAuthManager) GetWebhookHandler() http.Handler
- func (m *MockproviderClassOAuthManager) MarshallConfig(ctx context.Context, class db.ProviderClass, config json.RawMessage) (json.RawMessage, error)
- func (m *MockproviderClassOAuthManager) NewOAuthConfig(providerClass db.ProviderClass, cli bool) (*oauth2.Config, error)
- func (m *MockproviderClassOAuthManager) ValidateCredentials(ctx context.Context, cred v1.Credential, ...) error
- type MockproviderClassOAuthManagerMockRecorder
- func (mr *MockproviderClassOAuthManagerMockRecorder) Build(ctx, config any) *gomock.Call
- func (mr *MockproviderClassOAuthManagerMockRecorder) Delete(ctx, config any) *gomock.Call
- func (mr *MockproviderClassOAuthManagerMockRecorder) GetSupportedClasses() *gomock.Call
- func (mr *MockproviderClassOAuthManagerMockRecorder) GetWebhookHandler() *gomock.Call
- func (mr *MockproviderClassOAuthManagerMockRecorder) MarshallConfig(ctx, class, config any) *gomock.Call
- func (mr *MockproviderClassOAuthManagerMockRecorder) NewOAuthConfig(providerClass, cli any) *gomock.Call
- func (mr *MockproviderClassOAuthManagerMockRecorder) ValidateCredentials(ctx, cred, params any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAuthManager ¶
type MockAuthManager struct {
// contains filtered or unexported fields
}
MockAuthManager is a mock of AuthManager interface.
func NewMockAuthManager ¶
func NewMockAuthManager(ctrl *gomock.Controller) *MockAuthManager
NewMockAuthManager creates a new mock instance.
func (*MockAuthManager) EXPECT ¶
func (m *MockAuthManager) EXPECT() *MockAuthManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAuthManager) NewOAuthConfig ¶
func (m *MockAuthManager) NewOAuthConfig(providerClass db.ProviderClass, cli bool) (*oauth2.Config, error)
NewOAuthConfig mocks base method.
func (*MockAuthManager) ValidateCredentials ¶
func (m *MockAuthManager) ValidateCredentials(ctx context.Context, providerClass db.ProviderClass, cred v1.Credential, opts ...manager.CredentialVerifyOptFn) error
ValidateCredentials mocks base method.
type MockAuthManagerMockRecorder ¶
type MockAuthManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockAuthManagerMockRecorder is the mock recorder for MockAuthManager.
func (*MockAuthManagerMockRecorder) NewOAuthConfig ¶
func (mr *MockAuthManagerMockRecorder) NewOAuthConfig(providerClass, cli any) *gomock.Call
NewOAuthConfig indicates an expected call of NewOAuthConfig.
func (*MockAuthManagerMockRecorder) ValidateCredentials ¶
func (mr *MockAuthManagerMockRecorder) ValidateCredentials(ctx, providerClass, cred any, opts ...any) *gomock.Call
ValidateCredentials indicates an expected call of ValidateCredentials.
type MockProviderClassManager ¶
type MockProviderClassManager struct {
// contains filtered or unexported fields
}
MockProviderClassManager is a mock of ProviderClassManager interface.
func NewMockProviderClassManager ¶
func NewMockProviderClassManager(ctrl *gomock.Controller) *MockProviderClassManager
NewMockProviderClassManager creates a new mock instance.
func (*MockProviderClassManager) Build ¶
func (m *MockProviderClassManager) Build(ctx context.Context, config *db.Provider) (v1.Provider, error)
Build mocks base method.
func (*MockProviderClassManager) EXPECT ¶
func (m *MockProviderClassManager) EXPECT() *MockProviderClassManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockProviderClassManager) GetSupportedClasses ¶
func (m *MockProviderClassManager) GetSupportedClasses() []db.ProviderClass
GetSupportedClasses mocks base method.
func (*MockProviderClassManager) GetWebhookHandler ¶
func (m *MockProviderClassManager) GetWebhookHandler() http.Handler
GetWebhookHandler mocks base method.
func (*MockProviderClassManager) MarshallConfig ¶
func (m *MockProviderClassManager) MarshallConfig(ctx context.Context, class db.ProviderClass, config json.RawMessage) (json.RawMessage, error)
MarshallConfig mocks base method.
type MockProviderClassManagerMockRecorder ¶
type MockProviderClassManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockProviderClassManagerMockRecorder is the mock recorder for MockProviderClassManager.
func (*MockProviderClassManagerMockRecorder) Build ¶
func (mr *MockProviderClassManagerMockRecorder) Build(ctx, config any) *gomock.Call
Build indicates an expected call of Build.
func (*MockProviderClassManagerMockRecorder) Delete ¶
func (mr *MockProviderClassManagerMockRecorder) Delete(ctx, config any) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockProviderClassManagerMockRecorder) GetSupportedClasses ¶
func (mr *MockProviderClassManagerMockRecorder) GetSupportedClasses() *gomock.Call
GetSupportedClasses indicates an expected call of GetSupportedClasses.
func (*MockProviderClassManagerMockRecorder) GetWebhookHandler ¶
func (mr *MockProviderClassManagerMockRecorder) GetWebhookHandler() *gomock.Call
GetWebhookHandler indicates an expected call of GetWebhookHandler.
func (*MockProviderClassManagerMockRecorder) MarshallConfig ¶
func (mr *MockProviderClassManagerMockRecorder) MarshallConfig(ctx, class, config any) *gomock.Call
MarshallConfig indicates an expected call of MarshallConfig.
type MockProviderManager ¶
type MockProviderManager struct {
// contains filtered or unexported fields
}
MockProviderManager is a mock of ProviderManager interface.
func NewMockProviderManager ¶
func NewMockProviderManager(ctrl *gomock.Controller) *MockProviderManager
NewMockProviderManager creates a new mock instance.
func (*MockProviderManager) BulkInstantiateByTrait ¶
func (m *MockProviderManager) BulkInstantiateByTrait(ctx context.Context, projectID uuid.UUID, trait db.ProviderType, name string) (map[uuid.UUID]manager.NameProviderTuple, []string, error)
BulkInstantiateByTrait mocks base method.
func (*MockProviderManager) CreateFromConfig ¶
func (m *MockProviderManager) CreateFromConfig(ctx context.Context, providerClass db.ProviderClass, projectID uuid.UUID, name string, config json.RawMessage) (*db.Provider, error)
CreateFromConfig mocks base method.
func (*MockProviderManager) DeleteByID ¶
func (m *MockProviderManager) DeleteByID(ctx context.Context, providerID, projectID uuid.UUID) error
DeleteByID mocks base method.
func (*MockProviderManager) DeleteByName ¶
func (m *MockProviderManager) DeleteByName(ctx context.Context, name string, projectID uuid.UUID) error
DeleteByName mocks base method.
func (*MockProviderManager) EXPECT ¶
func (m *MockProviderManager) EXPECT() *MockProviderManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockProviderManager) InstantiateFromID ¶
func (m *MockProviderManager) InstantiateFromID(ctx context.Context, providerID uuid.UUID) (v1.Provider, error)
InstantiateFromID mocks base method.
func (*MockProviderManager) InstantiateFromNameProject ¶
func (m *MockProviderManager) InstantiateFromNameProject(ctx context.Context, name string, projectID uuid.UUID) (v1.Provider, error)
InstantiateFromNameProject mocks base method.
func (*MockProviderManager) IterateWebhookHandlers ¶
IterateWebhookHandlers mocks base method.
type MockProviderManagerMockRecorder ¶
type MockProviderManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockProviderManagerMockRecorder is the mock recorder for MockProviderManager.
func (*MockProviderManagerMockRecorder) BulkInstantiateByTrait ¶
func (mr *MockProviderManagerMockRecorder) BulkInstantiateByTrait(ctx, projectID, trait, name any) *gomock.Call
BulkInstantiateByTrait indicates an expected call of BulkInstantiateByTrait.
func (*MockProviderManagerMockRecorder) CreateFromConfig ¶
func (mr *MockProviderManagerMockRecorder) CreateFromConfig(ctx, providerClass, projectID, name, config any) *gomock.Call
CreateFromConfig indicates an expected call of CreateFromConfig.
func (*MockProviderManagerMockRecorder) DeleteByID ¶
func (mr *MockProviderManagerMockRecorder) DeleteByID(ctx, providerID, projectID any) *gomock.Call
DeleteByID indicates an expected call of DeleteByID.
func (*MockProviderManagerMockRecorder) DeleteByName ¶
func (mr *MockProviderManagerMockRecorder) DeleteByName(ctx, name, projectID any) *gomock.Call
DeleteByName indicates an expected call of DeleteByName.
func (*MockProviderManagerMockRecorder) InstantiateFromID ¶
func (mr *MockProviderManagerMockRecorder) InstantiateFromID(ctx, providerID any) *gomock.Call
InstantiateFromID indicates an expected call of InstantiateFromID.
func (*MockProviderManagerMockRecorder) InstantiateFromNameProject ¶
func (mr *MockProviderManagerMockRecorder) InstantiateFromNameProject(ctx, name, projectID any) *gomock.Call
InstantiateFromNameProject indicates an expected call of InstantiateFromNameProject.
func (*MockProviderManagerMockRecorder) IterateWebhookHandlers ¶
func (mr *MockProviderManagerMockRecorder) IterateWebhookHandlers() *gomock.Call
IterateWebhookHandlers indicates an expected call of IterateWebhookHandlers.
func (*MockProviderManagerMockRecorder) PatchProviderConfig ¶
func (mr *MockProviderManagerMockRecorder) PatchProviderConfig(ctx, providerName, projectID, configPatch any) *gomock.Call
PatchProviderConfig indicates an expected call of PatchProviderConfig.
type MockproviderClassAuthManager ¶
type MockproviderClassAuthManager struct {
// contains filtered or unexported fields
}
MockproviderClassAuthManager is a mock of providerClassAuthManager interface.
func NewMockproviderClassAuthManager ¶
func NewMockproviderClassAuthManager(ctrl *gomock.Controller) *MockproviderClassAuthManager
NewMockproviderClassAuthManager creates a new mock instance.
func (*MockproviderClassAuthManager) EXPECT ¶
func (m *MockproviderClassAuthManager) EXPECT() *MockproviderClassAuthManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockproviderClassAuthManagerMockRecorder ¶
type MockproviderClassAuthManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockproviderClassAuthManagerMockRecorder is the mock recorder for MockproviderClassAuthManager.
type MockproviderClassOAuthManager ¶
type MockproviderClassOAuthManager struct {
// contains filtered or unexported fields
}
MockproviderClassOAuthManager is a mock of providerClassOAuthManager interface.
func NewMockproviderClassOAuthManager ¶
func NewMockproviderClassOAuthManager(ctrl *gomock.Controller) *MockproviderClassOAuthManager
NewMockproviderClassOAuthManager creates a new mock instance.
func (*MockproviderClassOAuthManager) Build ¶
func (m *MockproviderClassOAuthManager) Build(ctx context.Context, config *db.Provider) (v1.Provider, error)
Build mocks base method.
func (*MockproviderClassOAuthManager) EXPECT ¶
func (m *MockproviderClassOAuthManager) EXPECT() *MockproviderClassOAuthManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockproviderClassOAuthManager) GetSupportedClasses ¶
func (m *MockproviderClassOAuthManager) GetSupportedClasses() []db.ProviderClass
GetSupportedClasses mocks base method.
func (*MockproviderClassOAuthManager) GetWebhookHandler ¶
func (m *MockproviderClassOAuthManager) GetWebhookHandler() http.Handler
GetWebhookHandler mocks base method.
func (*MockproviderClassOAuthManager) MarshallConfig ¶
func (m *MockproviderClassOAuthManager) MarshallConfig(ctx context.Context, class db.ProviderClass, config json.RawMessage) (json.RawMessage, error)
MarshallConfig mocks base method.
func (*MockproviderClassOAuthManager) NewOAuthConfig ¶
func (m *MockproviderClassOAuthManager) NewOAuthConfig(providerClass db.ProviderClass, cli bool) (*oauth2.Config, error)
NewOAuthConfig mocks base method.
func (*MockproviderClassOAuthManager) ValidateCredentials ¶
func (m *MockproviderClassOAuthManager) ValidateCredentials(ctx context.Context, cred v1.Credential, params *manager.CredentialVerifyParams) error
ValidateCredentials mocks base method.
type MockproviderClassOAuthManagerMockRecorder ¶
type MockproviderClassOAuthManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockproviderClassOAuthManagerMockRecorder is the mock recorder for MockproviderClassOAuthManager.
func (*MockproviderClassOAuthManagerMockRecorder) Build ¶
func (mr *MockproviderClassOAuthManagerMockRecorder) Build(ctx, config any) *gomock.Call
Build indicates an expected call of Build.
func (*MockproviderClassOAuthManagerMockRecorder) Delete ¶
func (mr *MockproviderClassOAuthManagerMockRecorder) Delete(ctx, config any) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockproviderClassOAuthManagerMockRecorder) GetSupportedClasses ¶
func (mr *MockproviderClassOAuthManagerMockRecorder) GetSupportedClasses() *gomock.Call
GetSupportedClasses indicates an expected call of GetSupportedClasses.
func (*MockproviderClassOAuthManagerMockRecorder) GetWebhookHandler ¶
func (mr *MockproviderClassOAuthManagerMockRecorder) GetWebhookHandler() *gomock.Call
GetWebhookHandler indicates an expected call of GetWebhookHandler.
func (*MockproviderClassOAuthManagerMockRecorder) MarshallConfig ¶
func (mr *MockproviderClassOAuthManagerMockRecorder) MarshallConfig(ctx, class, config any) *gomock.Call
MarshallConfig indicates an expected call of MarshallConfig.
func (*MockproviderClassOAuthManagerMockRecorder) NewOAuthConfig ¶
func (mr *MockproviderClassOAuthManagerMockRecorder) NewOAuthConfig(providerClass, cli any) *gomock.Call
NewOAuthConfig indicates an expected call of NewOAuthConfig.
func (*MockproviderClassOAuthManagerMockRecorder) ValidateCredentials ¶
func (mr *MockproviderClassOAuthManagerMockRecorder) ValidateCredentials(ctx, cred, params any) *gomock.Call
ValidateCredentials indicates an expected call of ValidateCredentials.