Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Gitlab Project Doctor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
Numérique et Écologie
Gitlab Project Doctor
Commits
cadaadc7
Verified
Commit
cadaadc7
authored
2 years ago
by
Geoffrey Arthaud
Browse files
Options
Downloads
Patches
Plain Diff
Rename storage diag
parent
d7ed771c
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/diagnosis.rs
+1
-1
1 addition, 1 deletion
src/diagnosis.rs
src/diagnosis/global_storage.rs
+5
-5
5 additions, 5 deletions
src/diagnosis/global_storage.rs
src/main.rs
+2
-2
2 additions, 2 deletions
src/main.rs
with
8 additions
and
8 deletions
src/diagnosis.rs
+
1
−
1
View file @
cadaadc7
pub
mod
gitlab_connection
;
pub
mod
g
itlab
_storage
;
pub
mod
g
lobal
_storage
;
pub
enum
ReportStatus
{
OK
(
String
),
...
...
This diff is collapsed.
Click to expand it.
src/diagnosis/g
itlab
_storage.rs
→
src/diagnosis/g
lobal
_storage.rs
+
5
−
5
View file @
cadaadc7
...
...
@@ -3,13 +3,13 @@ use crate::diagnosis::{Diagnosis, Report, ReportStatus};
use
gitlab
::
Gitlab
;
use
human_bytes
::
human_bytes
;
pub
struct
G
itlab
Storage
<
'a
>
{
pub
struct
G
lobal
Storage
<
'a
>
{
pub
gitlab
:
&
'a
Gitlab
,
pub
project
:
&
'a
Project
,
pub
report
:
Option
<
Report
>
,
}
impl
Diagnosis
for
G
itlab
Storage
<
'_
>
{
impl
Diagnosis
for
G
lobal
Storage
<
'_
>
{
fn
diagnosis
(
&
mut
self
)
->
&
Report
{
if
self
.report
.is_none
()
{
self
.report
=
Some
(
self
.analysis_storage
());
...
...
@@ -18,9 +18,9 @@ impl Diagnosis for GitlabStorage<'_> {
}
}
impl
<
'a
>
G
itlab
Storage
<
'a
>
{
pub
fn
new
(
gitlab
:
&
'a
Gitlab
,
project
:
&
'a
Project
)
->
G
itlab
Storage
<
'a
>
{
G
itlab
Storage
{
impl
<
'a
>
G
lobal
Storage
<
'a
>
{
pub
fn
new
(
gitlab
:
&
'a
Gitlab
,
project
:
&
'a
Project
)
->
G
lobal
Storage
<
'a
>
{
G
lobal
Storage
{
gitlab
:
gitlab
,
project
:
project
,
report
:
None
,
...
...
This diff is collapsed.
Click to expand it.
src/main.rs
+
2
−
2
View file @
cadaadc7
use
crate
::
diagnosis
::
gitlab_connection
::
GitlabConnection
;
use
crate
::
diagnosis
::
g
itlab
_storage
::
G
itlab
Storage
;
use
crate
::
diagnosis
::
g
lobal
_storage
::
G
lobal
Storage
;
use
crate
::
diagnosis
::
Diagnosis
;
use
crate
::
diagnosis
::{
Report
,
ReportStatus
};
use
console
::
style
;
...
...
@@ -54,7 +54,7 @@ fn main() {
display_report
(
gitlab_connection
.diagnosis
());
let
data
=
fatal_if_none
(
gitlab_connection
.data
,
"Diagnosis stops here."
);
let
mut
gitlab_storage
=
G
itlab
Storage
::
new
(
&
data
.gitlab
,
&
data
.project
);
let
mut
gitlab_storage
=
G
lobal
Storage
::
new
(
&
data
.gitlab
,
&
data
.project
);
display_report
(
gitlab_storage
.diagnosis
());
// println!(
...
...
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