forked from TrueCloudLab/frostfs-api-go
[#263] pkg/client: Split interface method's declarations with linebreaks
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
c819909906
commit
a43175e2ea
3 changed files with 14 additions and 0 deletions
|
@ -20,16 +20,22 @@ import (
|
||||||
type Container interface {
|
type Container interface {
|
||||||
// PutContainer creates new container in the NeoFS network.
|
// PutContainer creates new container in the NeoFS network.
|
||||||
PutContainer(context.Context, *container.Container, ...CallOption) (*container.ID, error)
|
PutContainer(context.Context, *container.Container, ...CallOption) (*container.ID, error)
|
||||||
|
|
||||||
// GetContainer returns container by ID.
|
// GetContainer returns container by ID.
|
||||||
GetContainer(context.Context, *container.ID, ...CallOption) (*container.Container, error)
|
GetContainer(context.Context, *container.ID, ...CallOption) (*container.Container, error)
|
||||||
|
|
||||||
// ListContainers return container list with the provided owner.
|
// ListContainers return container list with the provided owner.
|
||||||
ListContainers(context.Context, *owner.ID, ...CallOption) ([]*container.ID, error)
|
ListContainers(context.Context, *owner.ID, ...CallOption) ([]*container.ID, error)
|
||||||
|
|
||||||
// DeleteContainer removes container from NeoFS network.
|
// DeleteContainer removes container from NeoFS network.
|
||||||
DeleteContainer(context.Context, *container.ID, ...CallOption) error
|
DeleteContainer(context.Context, *container.ID, ...CallOption) error
|
||||||
|
|
||||||
// GetEACL returns extended ACL for a given container.
|
// GetEACL returns extended ACL for a given container.
|
||||||
GetEACL(context.Context, *container.ID, ...CallOption) (*EACLWithSignature, error)
|
GetEACL(context.Context, *container.ID, ...CallOption) (*EACLWithSignature, error)
|
||||||
|
|
||||||
// SetEACL sets extended ACL.
|
// SetEACL sets extended ACL.
|
||||||
SetEACL(context.Context, *eacl.Table, ...CallOption) error
|
SetEACL(context.Context, *eacl.Table, ...CallOption) error
|
||||||
|
|
||||||
// AnnounceContainerUsedSpace announces amount of space which is taken by stored objects.
|
// AnnounceContainerUsedSpace announces amount of space which is taken by stored objects.
|
||||||
AnnounceContainerUsedSpace(context.Context, []container.UsedSpaceAnnouncement, ...CallOption) error
|
AnnounceContainerUsedSpace(context.Context, []container.UsedSpaceAnnouncement, ...CallOption) error
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,6 +18,7 @@ type Netmap interface {
|
||||||
// in client constructor via address or open connection. This can be used as a
|
// in client constructor via address or open connection. This can be used as a
|
||||||
// health check to see if node is alive and responses to requests.
|
// health check to see if node is alive and responses to requests.
|
||||||
EndpointInfo(context.Context, ...CallOption) (*EndpointInfo, error)
|
EndpointInfo(context.Context, ...CallOption) (*EndpointInfo, error)
|
||||||
|
|
||||||
// NetworkInfo returns information about the NeoFS network of which the remote server is a part.
|
// NetworkInfo returns information about the NeoFS network of which the remote server is a part.
|
||||||
NetworkInfo(context.Context, ...CallOption) (*netmap.NetworkInfo, error)
|
NetworkInfo(context.Context, ...CallOption) (*netmap.NetworkInfo, error)
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,18 +24,25 @@ import (
|
||||||
type Object interface {
|
type Object interface {
|
||||||
// PutObject puts new object to NeoFS.
|
// PutObject puts new object to NeoFS.
|
||||||
PutObject(context.Context, *PutObjectParams, ...CallOption) (*object.ID, error)
|
PutObject(context.Context, *PutObjectParams, ...CallOption) (*object.ID, error)
|
||||||
|
|
||||||
// DeleteObject deletes object to NeoFS.
|
// DeleteObject deletes object to NeoFS.
|
||||||
DeleteObject(context.Context, *DeleteObjectParams, ...CallOption) error
|
DeleteObject(context.Context, *DeleteObjectParams, ...CallOption) error
|
||||||
|
|
||||||
// GetObject returns object stored in NeoFS.
|
// GetObject returns object stored in NeoFS.
|
||||||
GetObject(context.Context, *GetObjectParams, ...CallOption) (*object.Object, error)
|
GetObject(context.Context, *GetObjectParams, ...CallOption) (*object.Object, error)
|
||||||
|
|
||||||
// GetObjectHeader returns object header.
|
// GetObjectHeader returns object header.
|
||||||
GetObjectHeader(context.Context, *ObjectHeaderParams, ...CallOption) (*object.Object, error)
|
GetObjectHeader(context.Context, *ObjectHeaderParams, ...CallOption) (*object.Object, error)
|
||||||
|
|
||||||
// ObjectPayloadRangeData returns range of object payload.
|
// ObjectPayloadRangeData returns range of object payload.
|
||||||
ObjectPayloadRangeData(context.Context, *RangeDataParams, ...CallOption) ([]byte, error)
|
ObjectPayloadRangeData(context.Context, *RangeDataParams, ...CallOption) ([]byte, error)
|
||||||
|
|
||||||
// ObjectPayloadRangeSHA256 returns sha-256 hashes of object sub-ranges from NeoFS.
|
// ObjectPayloadRangeSHA256 returns sha-256 hashes of object sub-ranges from NeoFS.
|
||||||
ObjectPayloadRangeSHA256(context.Context, *RangeChecksumParams, ...CallOption) ([][sha256.Size]byte, error)
|
ObjectPayloadRangeSHA256(context.Context, *RangeChecksumParams, ...CallOption) ([][sha256.Size]byte, error)
|
||||||
|
|
||||||
// ObjectPayloadRangeTZ returns homomorphic hashes of object sub-ranges from NeoFS.
|
// ObjectPayloadRangeTZ returns homomorphic hashes of object sub-ranges from NeoFS.
|
||||||
ObjectPayloadRangeTZ(context.Context, *RangeChecksumParams, ...CallOption) ([][TZSize]byte, error)
|
ObjectPayloadRangeTZ(context.Context, *RangeChecksumParams, ...CallOption) ([][TZSize]byte, error)
|
||||||
|
|
||||||
// SearchObject searches for objects in NeoFS using provided parameters.
|
// SearchObject searches for objects in NeoFS using provided parameters.
|
||||||
SearchObject(context.Context, *SearchObjectParams, ...CallOption) ([]*object.ID, error)
|
SearchObject(context.Context, *SearchObjectParams, ...CallOption) ([]*object.ID, error)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue