mirror of
https://github.com/google/nomulus
synced 2026-09-18 22:14:23 +00:00
Add [] to export domain lists to GCS
The ExportDomainListsAction [] has a cron entry that runs it twice per day. It exports one flat text file per real (non-test) TLD to the "{project-id}-domain-lists" bucket in Google Cloud Storage, overwriting the existing ones in place. Each file is a newline-delimited list of active (non-deleted) domains in that TLD.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=116767987
This commit is contained in:
@@ -82,6 +82,12 @@ public final class ConfigModule {
|
||||
return config.getCommitLogDatastoreRetention();
|
||||
}
|
||||
|
||||
@Provides
|
||||
@Config("domainListsGcsBucket")
|
||||
public static String provideDomainListsGcsBucket(RegistryConfig config) {
|
||||
return config.getDomainListsBucket();
|
||||
}
|
||||
|
||||
/**
|
||||
* Maximum number of commit logs to delete per transaction.
|
||||
*
|
||||
|
||||
@@ -44,6 +44,13 @@ public interface RegistryConfig {
|
||||
*/
|
||||
public String getSnapshotsBucket();
|
||||
|
||||
/**
|
||||
* Returns the Google Cloud Storage bucket for storing exported domain lists.
|
||||
*
|
||||
* @see com.google.domain.registry.export.ExportDomainListsAction
|
||||
*/
|
||||
public String getDomainListsBucket();
|
||||
|
||||
/**
|
||||
* Returns the BigQuery dataset for storing directly imported datastore snapshots.
|
||||
*
|
||||
|
||||
@@ -52,6 +52,11 @@ public class TestRegistryConfig implements RegistryConfig {
|
||||
return getProjectId() + "-snapshots";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getDomainListsBucket() {
|
||||
return getProjectId() + "-domain-lists";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getSnapshotsDataset() {
|
||||
return "snapshots";
|
||||
|
||||
Reference in New Issue
Block a user