Struct garage_model::garage::Garage
source · pub struct Garage {
pub config: Config,
pub db: Db,
pub background: Arc<BackgroundRunner>,
pub system: Arc<System>,
pub block_manager: Arc<BlockManager>,
pub bucket_table: Arc<Table<BucketTable, TableFullReplication>>,
pub bucket_alias_table: Arc<Table<BucketAliasTable, TableFullReplication>>,
pub key_table: Arc<Table<KeyTable, TableFullReplication>>,
pub object_table: Arc<Table<ObjectTable, TableShardedReplication>>,
pub object_counter_table: Arc<IndexCounter<Object>>,
pub version_table: Arc<Table<VersionTable, TableShardedReplication>>,
pub block_ref_table: Arc<Table<BlockRefTable, TableShardedReplication>>,
}
Expand description
An entire Garage full of data
Fields
config: Config
The parsed configuration Garage is running
db: Db
The local database
background: Arc<BackgroundRunner>
A background job runner
system: Arc<System>
The membership manager
block_manager: Arc<BlockManager>
The block manager
bucket_table: Arc<Table<BucketTable, TableFullReplication>>
Table containing buckets
bucket_alias_table: Arc<Table<BucketAliasTable, TableFullReplication>>
Table containing bucket aliases
key_table: Arc<Table<KeyTable, TableFullReplication>>
Table containing api keys
object_table: Arc<Table<ObjectTable, TableShardedReplication>>
Table containing S3 objects
object_counter_table: Arc<IndexCounter<Object>>
Counting table containing object counters
version_table: Arc<Table<VersionTable, TableShardedReplication>>
Table containing S3 object versions
block_ref_table: Arc<Table<BlockRefTable, TableShardedReplication>>
Table containing S3 block references (not blocks themselves)
Implementations
sourceimpl Garage
impl Garage
sourcepub fn new(
config: Config,
background: Arc<BackgroundRunner>
) -> Result<Arc<Self>, Error>
pub fn new(
config: Config,
background: Arc<BackgroundRunner>
) -> Result<Arc<Self>, Error>
Create and run garage
pub fn bucket_helper(&self) -> BucketHelper<'_>
pub fn key_helper(&self) -> KeyHelper<'_>
Auto Trait Implementations
impl !RefUnwindSafe for Garage
impl Send for Garage
impl Sync for Garage
impl Unpin for Garage
impl !UnwindSafe for Garage
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more