mock_manager

package
v0.0.68 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package mock_manager is a generated GoMock package.

Package mock_manager is a generated GoMock package.

Index

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

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) Delete

func (m *MockProviderClassManager) Delete(ctx context.Context, config *db.Provider) error

Delete mocks base method.

func (*MockProviderClassManager) EXPECT

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

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

func (m *MockProviderManager) IterateWebhookHandlers() iter.Seq2[string, http.Handler]

IterateWebhookHandlers mocks base method.

func (*MockProviderManager) PatchProviderConfig

func (m *MockProviderManager) PatchProviderConfig(ctx context.Context, providerName string, projectID uuid.UUID, configPatch map[string]any) error

PatchProviderConfig 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

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

Build mocks base method.

func (*MockproviderClassOAuthManager) Delete

Delete mocks base method.

func (*MockproviderClassOAuthManager) EXPECT

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

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

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.

Directories

Path Synopsis
Package fixtures contains code for creating ProfileService fixtures and is used in various parts of the code.
Package fixtures contains code for creating ProfileService fixtures and is used in various parts of the code.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL