
- Add CertificateRepository with CRUD operations - Implement CertificateAuthorityRepository for CA management - Add CertificateRequestRepository for CSR handling - Include UserRepository and OrganizationRepository - Implement proper error handling and validation - Add support for soft deletes and relationships - Include query optimization and filtering capabilities
11 lines
441 B
Go
11 lines
441 B
Go
package repositories
|
|
|
|
type Repository interface {
|
|
GetByID(id string) (interface{}, error) // Get a single entity by ID
|
|
GetAll() ([]interface{}, error) // Get all entities
|
|
Create(entity interface{}) error // Create a new entity
|
|
Update(entity interface{}) error // Update an entity
|
|
Delete(id string) error // Delete an entity by ID
|
|
HardDelete(entity interface{}) error // Hard delete an entity
|
|
}
|