GetConfig fetches a database name for a given bucket and config group ID.
(ctx context.Context, bucketName, groupID, dbName string, configName *dbConfigNameOnly)
| 50 | |
| 51 | // GetConfig fetches a database name for a given bucket and config group ID. |
| 52 | func (b *bootstrapContext) GetConfigName(ctx context.Context, bucketName, groupID, dbName string, configName *dbConfigNameOnly) (cas uint64, err error) { |
| 53 | return b.Connection.GetMetadataDocument(ctx, bucketName, PersistentConfigKey(ctx, groupID, dbName), configName) |
| 54 | } |
| 55 | |
| 56 | // GetConfig fetches a database config for a given bucket and config group ID, along with the CAS of the config document. |
| 57 | // GetConfig does *not* validate that config version matches registry version - operations requiring synchronization |
no test coverage detected