R2 Data Catalog
List R2 catalogs
client.R2DataCatalog.List(ctx, query) (*R2DataCatalogListResponse, error)
GET/accounts/{account_id}/r2-catalog
Get R2 catalog details
client.R2DataCatalog.Get(ctx, bucketName, query) (*R2DataCatalogGetResponse, error)
GET/accounts/{account_id}/r2-catalog/{bucket_name}
Enable R2 bucket as a catalog
client.R2DataCatalog.Enable(ctx, bucketName, body) (*R2DataCatalogEnableResponse, error)
POST/accounts/{account_id}/r2-catalog/{bucket_name}/enable
Disable R2 catalog
client.R2DataCatalog.Disable(ctx, bucketName, body) error
POST/accounts/{account_id}/r2-catalog/{bucket_name}/disable
R2 Data CatalogMaintenance Configs
Get catalog maintenance configuration
client.R2DataCatalog.MaintenanceConfigs.Get(ctx, bucketName, query) (*MaintenanceConfigGetResponse, error)
GET/accounts/{account_id}/r2-catalog/{bucket_name}/maintenance-configs
Update catalog maintenance configuration
client.R2DataCatalog.MaintenanceConfigs.Update(ctx, bucketName, params) (*MaintenanceConfigUpdateResponse, error)
POST/accounts/{account_id}/r2-catalog/{bucket_name}/maintenance-configs
R2 Data CatalogCredentials
Store catalog credentials
client.R2DataCatalog.Credentials.New(ctx, bucketName, params) (*CredentialNewResponse, error)
POST/accounts/{account_id}/r2-catalog/{bucket_name}/credential
R2 Data CatalogNamespaces
List namespaces in catalog
client.R2DataCatalog.Namespaces.List(ctx, bucketName, params) (*NamespaceListResponse, error)
GET/accounts/{account_id}/r2-catalog/{bucket_name}/namespaces
R2 Data CatalogNamespacesTables
List tables in namespace
client.R2DataCatalog.Namespaces.Tables.List(ctx, bucketName, namespace, params) (*NamespaceTableListResponse, error)
GET/accounts/{account_id}/r2-catalog/{bucket_name}/namespaces/{namespace}/tables
R2 Data CatalogNamespacesTablesMaintenance Configs
Get table maintenance configuration
client.R2DataCatalog.Namespaces.Tables.MaintenanceConfigs.Get(ctx, bucketName, namespace, tableName, query) (*NamespaceTableMaintenanceConfigGetResponse, error)
GET/accounts/{account_id}/r2-catalog/{bucket_name}/namespaces/{namespace}/tables/{table_name}/maintenance-configs
Update table maintenance configuration
client.R2DataCatalog.Namespaces.Tables.MaintenanceConfigs.Update(ctx, bucketName, namespace, tableName, params) (*NamespaceTableMaintenanceConfigUpdateResponse, error)
POST/accounts/{account_id}/r2-catalog/{bucket_name}/namespaces/{namespace}/tables/{table_name}/maintenance-configs