Interface IMigration
Provides a migration path to the repository.
Namespace: Ipfs.Engine.Migration
Assembly: Ipfs.Engine.dll
Syntax
public interface IMigration
Properties
| Improve this Doc View SourceCanDowngrade
Indicates that an downgrade can be performed.
Declaration
bool CanDowngrade { get; }
Property Value
Type | Description |
---|---|
Boolean |
CanUpgrade
Indicates that an upgrade can be performed.
Declaration
bool CanUpgrade { get; }
Property Value
Type | Description |
---|---|
Boolean |
Version
The repository version that is created.
Declaration
int Version { get; }
Property Value
Type | Description |
---|---|
Int32 |
Methods
| Improve this Doc View SourceDowngradeAsync(IpfsEngine, CancellationToken)
Downgrade the repository.
Declaration
Task DowngradeAsync(IpfsEngine ipfs, CancellationToken cancel = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
IpfsEngine | ipfs | The IPFS system to downgrade. |
CancellationToken | cancel |
Returns
Type | Description |
---|---|
Task |
UpgradeAsync(IpfsEngine, CancellationToken)
Upgrade the repository.
Declaration
Task UpgradeAsync(IpfsEngine ipfs, CancellationToken cancel = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
IpfsEngine | ipfs | The IPFS system to upgrade. |
CancellationToken | cancel |
Returns
Type | Description |
---|---|
Task |