[#4] infrastructure and sample Client Cut
Signed-off-by: Pavel Gross <p.gross@yadro.com>
This commit is contained in:
parent
0c4723c705
commit
545e647d7b
22 changed files with 717 additions and 193 deletions
|
@ -9,13 +9,24 @@ namespace FrostFS.SDK.ClientV2.Interfaces;
|
|||
public interface IFrostFSClient
|
||||
{
|
||||
Task<ModelsV2.Container> GetContainerAsync(ContainerId containerId);
|
||||
|
||||
IAsyncEnumerable<ContainerId> ListContainersAsync();
|
||||
|
||||
Task<ContainerId> CreateContainerAsync(ModelsV2.Container container);
|
||||
|
||||
Task DeleteContainerAsync(ContainerId containerId);
|
||||
|
||||
Task<ObjectHeader> GetObjectHeadAsync(ContainerId containerId, ObjectId objectId);
|
||||
|
||||
Task<ModelsV2.Object> GetObjectAsync(ContainerId containerId, ObjectId objectId);
|
||||
|
||||
Task<ObjectId> PutObjectAsync(ObjectHeader header, Stream payload);
|
||||
|
||||
Task<ObjectId> PutObjectAsync(ObjectHeader header, byte[] payload);
|
||||
|
||||
Task<ObjectId> PutSingleObjectAsync(ModelsV2.Object obj);
|
||||
|
||||
Task DeleteObjectAsync(ContainerId containerId, ObjectId objectId);
|
||||
IAsyncEnumerable<ObjectId> SearchObjectsAsync(ContainerId cid, params ObjectFilter[] filters);
|
||||
|
||||
IAsyncEnumerable<ObjectId> SearchObjectsAsync(ContainerId cid, params ObjectFilter[] filters);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue