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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
perxis
perxis-go
Commits
88a02dda
Commit
88a02dda
authored
5 months ago
by
Anton Sattarov
Browse files
Options
Downloads
Patches
Plain Diff
fix for lint
parent
62a92f26
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
pkg/items/storage.go
+10
-10
10 additions, 10 deletions
pkg/items/storage.go
with
10 additions
and
10 deletions
pkg/items/storage.go
+
10
−
10
View file @
88a02dda
...
...
@@ -30,7 +30,7 @@ type Storage interface {
Create
(
ctx
context
.
Context
,
coll
*
collections
.
Collection
,
item
*
Item
,
options
...*
CreateOptions
)
(
*
Item
,
error
)
// CreateRevision - перенести ревизию в коллекцию Revisions
CreateRevision
(
ctx
context
.
Context
,
coll
*
collections
.
Collection
,
itemI
d
string
)
error
CreateRevision
(
ctx
context
.
Context
,
coll
*
collections
.
Collection
,
itemI
D
string
)
error
// Update - Обновление текущей ревизии
Update
(
ctx
context
.
Context
,
coll
*
collections
.
Collection
,
item
*
Item
,
options
...*
UpdateOptions
)
error
...
...
@@ -39,13 +39,13 @@ type Storage interface {
Find
(
ctx
context
.
Context
,
coll
*
collections
.
Collection
,
filter
*
Filter
,
opts
...*
StorageFindOptions
)
([]
*
Item
,
int
,
error
)
// GetRevision - поиск одной ревизии одной записи
GetRevision
(
ctx
context
.
Context
,
coll
*
collections
.
Collection
,
itemI
d
,
revisionI
d
string
,
options
...*
StorageFindOptions
)
(
*
Item
,
error
)
GetRevision
(
ctx
context
.
Context
,
coll
*
collections
.
Collection
,
itemI
D
,
revisionI
D
string
,
options
...*
StorageFindOptions
)
(
*
Item
,
error
)
// ListRevisions - поиск всех ревизий одной записи
ListRevisions
(
ctx
context
.
Context
,
coll
*
collections
.
Collection
,
itemI
d
string
,
options
...*
StorageFindOptions
)
([]
*
Item
,
int
,
error
)
ListRevisions
(
ctx
context
.
Context
,
coll
*
collections
.
Collection
,
itemI
D
string
,
options
...*
StorageFindOptions
)
([]
*
Item
,
int
,
error
)
// ChangeRevisionsItemID - заменить ID элемента у его ревизий
ChangeRevisionsItemID
(
ctx
context
.
Context
,
coll
*
collections
.
Collection
,
itemI
d
,
newItemI
d
string
)
error
ChangeRevisionsItemID
(
ctx
context
.
Context
,
coll
*
collections
.
Collection
,
itemI
D
,
newItemI
D
string
)
error
// Publish - опубликовать запись
Publish
(
ctx
context
.
Context
,
coll
*
collections
.
Collection
,
published
*
Item
,
options
...*
PublishOptions
)
error
...
...
@@ -66,22 +66,22 @@ type Storage interface {
FindArchived
(
ctx
context
.
Context
,
coll
*
collections
.
Collection
,
filter
*
Filter
,
opts
...*
StorageFindOptions
)
([]
*
Item
,
int
,
error
)
// RemoveItems - удаление записи из коллекций Items
RemoveItems
(
ctx
context
.
Context
,
coll
*
collections
.
Collection
,
itemI
d
string
,
options
...*
DeleteOptions
)
error
RemoveItems
(
ctx
context
.
Context
,
coll
*
collections
.
Collection
,
itemI
D
string
,
options
...*
DeleteOptions
)
error
// RemovePublished - удаление записи из коллекций Published
RemovePublished
(
ctx
context
.
Context
,
coll
*
collections
.
Collection
,
itemI
d
string
,
options
...*
DeleteOptions
)
error
RemovePublished
(
ctx
context
.
Context
,
coll
*
collections
.
Collection
,
itemI
D
string
,
options
...*
DeleteOptions
)
error
// CleanUpRevisions - очистка ревизий элемента, согласно настройкам лимитов для ревизий в коллекции
CleanUpRevisions
(
ctx
context
.
Context
,
coll
*
collections
.
Collection
,
itemI
d
string
)
error
CleanUpRevisions
(
ctx
context
.
Context
,
coll
*
collections
.
Collection
,
itemI
D
string
)
error
// RemoveRevisions - удаление записи из всех ревизий элемента
RemoveRevisions
(
ctx
context
.
Context
,
coll
*
collections
.
Collection
,
itemI
d
string
,
options
...*
DeleteOptions
)
error
RemoveRevisions
(
ctx
context
.
Context
,
coll
*
collections
.
Collection
,
itemI
D
string
,
options
...*
DeleteOptions
)
error
// RemoveRevision - удаление конкретной ревизии из Revisions
RemoveRevision
(
ctx
context
.
Context
,
coll
*
collections
.
Collection
,
revision
string
,
options
...*
DeleteOptions
)
error
RemoveRevision
(
ctx
context
.
Context
,
coll
*
collections
.
Collection
,
revision
ID
string
,
options
...*
DeleteOptions
)
error
// RemoveArchived - удаление записи из архива
RemoveArchived
(
ctx
context
.
Context
,
coll
*
collections
.
Collection
,
itemI
d
string
,
options
...*
DeleteOptions
)
error
RemoveArchived
(
ctx
context
.
Context
,
coll
*
collections
.
Collection
,
itemI
D
string
,
options
...*
DeleteOptions
)
error
// Copy - копирование записей
Copy
(
ctx
context
.
Context
,
src
,
dst
*
collections
.
Collection
,
itemSets
...
string
)
error
...
...
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