#include "tensorstore/kvstore/spec.h"
class tensorstore::kvstore::DriverSpecPtr;

Smart pointer that represents a driver-specific kvstore spec.

Methods

absl::Status BindContext(const Contextcontext);

Binds any unbound context resources using the specified context. Any already-bound context resources remain unmodified.

void UnbindContext();

Unbinds any bound context resources, replacing them with context resource specs that may be used to recreate the context resources. Any already-unbound context resources remain unmodified.

void StripContext();

Replaces any context resources with a default context resource spec.

ContextBindingState context_binding_state() const;

Indicates the context binding state of the spec.

absl::Status Set(Option&&... option);
absl::Status Set(DriverSpecOptions&options);
absl::Status Set(SpecConvertOptions&options);

Mutates this spec according to the specified options.