67 lines
2.3 KiB
C#
67 lines
2.3 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace FrostFS.SDK.Client.Interfaces;
|
|
|
|
public interface IFrostFSClient
|
|
{
|
|
#region Network
|
|
Task<FrostFsNetmapSnapshot> GetNetmapSnapshotAsync(CallContext ctx);
|
|
|
|
Task<FrostFsNodeInfo> GetNodeInfoAsync(CallContext ctx);
|
|
|
|
Task<NetworkSettings> GetNetworkSettingsAsync(CallContext ctx);
|
|
#endregion
|
|
|
|
#region Session
|
|
Task<FrostFsSessionToken> CreateSessionAsync(PrmSessionCreate args, CallContext ctx);
|
|
#endregion
|
|
|
|
#region ApeManager
|
|
Task<ReadOnlyMemory<byte>> AddChainAsync(PrmApeChainAdd args, CallContext ctx);
|
|
|
|
Task RemoveChainAsync(PrmApeChainRemove args, CallContext ctx);
|
|
|
|
Task<FrostFsChain[]> ListChainAsync(PrmApeChainList args, CallContext ctx);
|
|
#endregion
|
|
|
|
#region Container
|
|
Task<FrostFsContainerInfo> GetContainerAsync(PrmContainerGet args, CallContext ctx);
|
|
|
|
IAsyncEnumerable<FrostFsContainerId> ListContainersAsync(PrmContainerGetAll args, CallContext ctx);
|
|
|
|
[Obsolete("Use PutContainerAsync method")]
|
|
Task<FrostFsContainerId> CreateContainerAsync(PrmContainerCreate args, CallContext ctx);
|
|
|
|
Task<FrostFsContainerId> PutContainerAsync(PrmContainerCreate args, CallContext ctx);
|
|
|
|
Task DeleteContainerAsync(PrmContainerDelete args, CallContext ctx);
|
|
#endregion
|
|
|
|
#region Object
|
|
Task<FrostFsHeaderResult> GetObjectHeadAsync(PrmObjectHeadGet args, CallContext ctx);
|
|
|
|
Task<FrostFsObject> GetObjectAsync(PrmObjectGet args, CallContext ctx);
|
|
|
|
Task<RangeReader> GetRangeAsync(PrmRangeGet args, CallContext ctx);
|
|
|
|
Task<ReadOnlyMemory<byte>[]> GetRangeHashAsync(PrmRangeHashGet args, CallContext ctx);
|
|
|
|
Task<IObjectWriter> PutObjectAsync(PrmObjectPut args, CallContext ctx);
|
|
|
|
Task<FrostFsObjectId> PutClientCutObjectAsync(PrmObjectClientCutPut args, CallContext ctx);
|
|
|
|
Task<FrostFsObjectId> PutSingleObjectAsync(PrmSingleObjectPut args, CallContext ctx);
|
|
|
|
Task<FrostFsObjectId> PatchObjectAsync(PrmObjectPatch args, CallContext ctx);
|
|
|
|
Task DeleteObjectAsync(PrmObjectDelete args, CallContext ctx);
|
|
|
|
IAsyncEnumerable<FrostFsObjectId> SearchObjectsAsync(PrmObjectSearch args, CallContext ctx);
|
|
#endregion
|
|
|
|
#region Account
|
|
Task<Accounting.Decimal> GetBalanceAsync(CallContext ctx);
|
|
#endregion
|
|
}
|