feat: remove domains whose zones vanished at the provider on import
This commit is contained in:
+4
-1
@@ -48,7 +48,10 @@ type TenantStore interface {
|
||||
// domain's zone name (for the generated template's name) before creating it.
|
||||
GetDomain(ctx context.Context, id, projectID uuid.UUID) (store.Domain, error)
|
||||
DeleteDomain(ctx context.Context, id, projectID uuid.UUID) error
|
||||
ImportDomains(ctx context.Context, projectID, accountID uuid.UUID, zones []provider.Zone) ([]store.Domain, error)
|
||||
// ImportDomains synchronises an account's zones with its domains: new
|
||||
// zones become domains, domains of vanished zones are deleted. Returns
|
||||
// (created, removed).
|
||||
ImportDomains(ctx context.Context, projectID, accountID uuid.UUID, zones []provider.Zone) ([]store.Domain, []store.Domain, error)
|
||||
SetDomainTemplate(ctx context.Context, domainID, projectID uuid.UUID, templateID *uuid.UUID) (store.Domain, error)
|
||||
// SetDomainStatus persists the outcome of a manual check (handleCheck) so
|
||||
// the domain's badge reflects reality immediately, instead of staying
|
||||
|
||||
Reference in New Issue
Block a user