forked from TrueCloudLab/frostfs-node
[#211] blobstor: Define Exists operation
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
915243c69e
commit
3c0ef270f4
1 changed files with 24 additions and 0 deletions
24
pkg/local_object_storage/blobstor/exists.go
Normal file
24
pkg/local_object_storage/blobstor/exists.go
Normal file
|
@ -0,0 +1,24 @@
|
|||
package blobstor
|
||||
|
||||
// ExistsPrm groups the parameters of Exists operation.
|
||||
type ExistsPrm struct {
|
||||
address
|
||||
}
|
||||
|
||||
// ExistsRes groups resulting values of Exists operation.
|
||||
type ExistsRes struct {
|
||||
exists bool
|
||||
}
|
||||
|
||||
// Exists returns the fact that the object is in BLOB storage.
|
||||
func (r ExistsRes) Exists() bool {
|
||||
return r.exists
|
||||
}
|
||||
|
||||
// Exists checks if object is presented in BLOB storage.
|
||||
//
|
||||
// Returns any error encountered that did not allow
|
||||
// to completely check object existence.
|
||||
func (b *BlobStor) Exists(prm *ExistsPrm) (*ExistsRes, error) {
|
||||
panic("implement me")
|
||||
}
|
Loading…
Reference in a new issue