Store abstracts the implementation of letsencrypt storage operations
| 9 | |
| 10 | // Store abstracts the implementation of letsencrypt storage operations |
| 11 | type Store interface { |
| 12 | WatchServices(cb func(eventType string, serviceID string, projects model.ScServices)) error |
| 13 | WatchResources(cb func(eventType, resourceId string, resourceType config.Resource, resource interface{})) error |
| 14 | |
| 15 | Register() |
| 16 | |
| 17 | SetResource(ctx context.Context, resourceID string, resource interface{}) error |
| 18 | DeleteResource(ctx context.Context, resourceID string) error |
| 19 | |
| 20 | // This function should only be used by delete project endpoint |
| 21 | DeleteProject(ctx context.Context, projectID string) error |
| 22 | |
| 23 | GetGlobalConfig() (*config.Config, error) |
| 24 | } |
no outgoing calls
no test coverage detected