Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
git_borg_linker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LBMC
Hub
git_borg_linker
Commits
cf44f823
Verified
Commit
cf44f823
authored
2 years ago
by
nfontrod
Browse files
Options
Downloads
Patches
Plain Diff
src/config_structure.rs: delete repository table
parent
249bc88d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/config_structure.rs
+0
-14
0 additions, 14 deletions
src/config_structure.rs
with
0 additions
and
14 deletions
src/config_structure.rs
+
0
−
14
View file @
cf44f823
use
colored
::
Colorize
;
use
colored
::
Colorize
;
/// This module contains the structure of the gblk config file
/// This module contains the structure of the gblk config file
use
serde_derive
::{
Deserialize
,
Serialize
};
use
serde_derive
::{
Deserialize
,
Serialize
};
use
toml
::{
self
,
Value
};
/// /// Structure containing the global definition of the borg config file
/// /// Structure containing the global definition of the borg config file
#[derive(Debug,
Deserialize,
Serialize,
Clone)]
#[derive(Debug,
Deserialize,
Serialize,
Clone)]
pub
struct
Config
{
pub
struct
Config
{
pub
repository
:
Option
<
Repository
>
,
pub
gblk_prune
:
Option
<
GblkConfig
>
,
pub
gblk_prune
:
Option
<
GblkConfig
>
,
pub
gblk_remote
:
Option
<
Vec
<
RemoteConfig
>>
,
pub
gblk_remote
:
Option
<
Vec
<
RemoteConfig
>>
,
}
}
/// Structure that store the current borg configuration for the project
#[derive(Debug,
Deserialize,
Serialize,
Clone)]
pub
struct
Repository
{
pub
version
:
Value
,
pub
segments_per_dir
:
usize
,
pub
max_segment_size
:
usize
,
pub
append_only
:
usize
,
pub
storage_quota
:
usize
,
pub
additional_free_space
:
usize
,
pub
id
:
String
,
}
/// Structure corresponding to the gblk prune config to automatically use
/// Structure corresponding to the gblk prune config to automatically use
/// inside a project
/// inside a project
#[derive(Debug,
Deserialize,
Serialize,
Clone)]
#[derive(Debug,
Deserialize,
Serialize,
Clone)]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment