Documentation ¶
Index ¶
- type MockProjectRepository
- func (m *MockProjectRepository) AddAllowedOrigin(ctx context.Context, projectID, origin string) error
- func (m *MockProjectRepository) Create(ctx context.Context, proj *project.Project) error
- func (m *MockProjectRepository) Delete(ctx context.Context, projectID string) error
- func (m *MockProjectRepository) Get(ctx context.Context, projectID string) (*project.Project, error)
- func (m *MockProjectRepository) GetAllowedOrigins(ctx context.Context, projectID string) ([]string, error)
- func (m *MockProjectRepository) GetAllowedOriginsByAPIKey(ctx context.Context, apiKey string) ([]string, error)
- func (m *MockProjectRepository) GetByAPIKey(ctx context.Context, apiKey string) (*project.Project, error)
- func (m *MockProjectRepository) GetEncryptionPart(ctx context.Context, projectID string) (string, error)
- func (m *MockProjectRepository) RemoveAllowedOrigin(ctx context.Context, projectID, origin string) error
- func (m *MockProjectRepository) SetEncryptionPart(ctx context.Context, projectID, part string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockProjectRepository ¶
func (*MockProjectRepository) AddAllowedOrigin ¶
func (m *MockProjectRepository) AddAllowedOrigin(ctx context.Context, projectID, origin string) error
func (*MockProjectRepository) Delete ¶
func (m *MockProjectRepository) Delete(ctx context.Context, projectID string) error
func (*MockProjectRepository) GetAllowedOrigins ¶
func (*MockProjectRepository) GetAllowedOriginsByAPIKey ¶
func (*MockProjectRepository) GetByAPIKey ¶
func (*MockProjectRepository) GetEncryptionPart ¶
func (*MockProjectRepository) RemoveAllowedOrigin ¶
func (m *MockProjectRepository) RemoveAllowedOrigin(ctx context.Context, projectID, origin string) error
func (*MockProjectRepository) SetEncryptionPart ¶
func (m *MockProjectRepository) SetEncryptionPart(ctx context.Context, projectID, part string) error
Click to show internal directories.
Click to hide internal directories.