Documentation ¶
Index ¶
- type MockProviderRepository
- func (m *MockProviderRepository) Create(ctx context.Context, prov *provider.Provider) error
- func (m *MockProviderRepository) CreateCustom(ctx context.Context, prov *provider.CustomConfig) error
- func (m *MockProviderRepository) CreateOpenfort(ctx context.Context, prov *provider.OpenfortConfig) error
- func (m *MockProviderRepository) Delete(ctx context.Context, providerID string) error
- func (m *MockProviderRepository) Get(ctx context.Context, id string) (*provider.Provider, error)
- func (m *MockProviderRepository) GetByAPIKeyAndType(ctx context.Context, apiKey string, providerType provider.Type) (*provider.Provider, error)
- func (m *MockProviderRepository) GetByProjectAndType(ctx context.Context, projectID string, providerType provider.Type) (*provider.Provider, error)
- func (m *MockProviderRepository) GetCustom(ctx context.Context, providerID string) (*provider.CustomConfig, error)
- func (m *MockProviderRepository) GetOpenfort(ctx context.Context, providerID string) (*provider.OpenfortConfig, error)
- func (m *MockProviderRepository) List(ctx context.Context, projectID string) ([]*provider.Provider, error)
- func (m *MockProviderRepository) UpdateCustom(ctx context.Context, prov *provider.CustomConfig) error
- func (m *MockProviderRepository) UpdateOpenfort(ctx context.Context, prov *provider.OpenfortConfig) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockProviderRepository ¶
func (*MockProviderRepository) CreateCustom ¶
func (m *MockProviderRepository) CreateCustom(ctx context.Context, prov *provider.CustomConfig) error
func (*MockProviderRepository) CreateOpenfort ¶
func (m *MockProviderRepository) CreateOpenfort(ctx context.Context, prov *provider.OpenfortConfig) error
func (*MockProviderRepository) Delete ¶
func (m *MockProviderRepository) Delete(ctx context.Context, providerID string) error
func (*MockProviderRepository) GetByAPIKeyAndType ¶
func (*MockProviderRepository) GetByProjectAndType ¶
func (*MockProviderRepository) GetCustom ¶
func (m *MockProviderRepository) GetCustom(ctx context.Context, providerID string) (*provider.CustomConfig, error)
func (*MockProviderRepository) GetOpenfort ¶
func (m *MockProviderRepository) GetOpenfort(ctx context.Context, providerID string) (*provider.OpenfortConfig, error)
func (*MockProviderRepository) UpdateCustom ¶
func (m *MockProviderRepository) UpdateCustom(ctx context.Context, prov *provider.CustomConfig) error
func (*MockProviderRepository) UpdateOpenfort ¶
func (m *MockProviderRepository) UpdateOpenfort(ctx context.Context, prov *provider.OpenfortConfig) error
Click to show internal directories.
Click to hide internal directories.