Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
perxis-go
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Package Registry
Operate
Terraform modules
Analyze
Contributor 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
perxis
perxis-go
Commits
68f3426e
Commit
68f3426e
authored
2 years ago
by
Alena Petraki
Browse files
Options
Downloads
Patches
Plain Diff
Убрана неиспользуемая функция. Убран устаревший комментарий
parent
1f57fd0f
Branches
feature/PRXS-1005-PerxisGoSpaces
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pkg/space/service.go
+1
-20
1 addition, 20 deletions
pkg/space/service.go
with
1 addition
and
20 deletions
pkg/space/service.go
+
1
−
20
View file @
68f3426e
...
...
@@ -2,8 +2,6 @@ package space
import
(
"context"
"github.com/pkg/errors"
)
// @microgen grpc
...
...
@@ -15,11 +13,8 @@ type Spaces interface {
// 1. Создается запись о пространстве
// 2. Создается БД пространства
// 3. Создается master окружение
// 4. Создаются необходимые схема согласно указанной конфигурации
// 5. Выполняется копирование данных согласно указанной конфигурации
// Шаги могут выполняться в отложенном режиме, при этом пространство может быть недоступно для
// выполнения любых операций. Попытка обращения к пространству будет сопровождаться ошибкой
// ErrUnavailable
// выполнения любых операций
Create
(
ctx
context
.
Context
,
space
*
Space
)
(
created
*
Space
,
err
error
)
Get
(
ctx
context
.
Context
,
spaceId
string
)
(
space
*
Space
,
err
error
)
...
...
@@ -28,17 +23,3 @@ type Spaces interface {
UpdateConfig
(
ctx
context
.
Context
,
spaceId
string
,
config
*
Config
)
(
err
error
)
Delete
(
ctx
context
.
Context
,
spaceId
string
)
(
err
error
)
}
func
IsSpaceAvailable
(
ctx
context
.
Context
,
spcs
Spaces
,
spaceId
string
)
error
{
spc
,
err
:=
spcs
.
Get
(
ctx
,
spaceId
)
if
err
!=
nil
{
return
errors
.
Wrap
(
err
,
"space not available"
)
}
if
spc
.
State
!=
StateReady
{
return
errors
.
New
(
"space not available"
)
}
return
nil
}
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