-
-
Notifications
You must be signed in to change notification settings - Fork 294
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore!: Remove legacy TestcontainersNetworkBuilder, IDockerNetwork (#804
- Loading branch information
1 parent
69453ec
commit 1fe8d56
Showing
9 changed files
with
11 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,19 @@ | ||
namespace DotNet.Testcontainers.Networks | ||
{ | ||
using System; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
using JetBrains.Annotations; | ||
|
||
/// <summary> | ||
/// A network instance. | ||
/// </summary> | ||
[PublicAPI] | ||
public interface INetwork : IDockerNetwork, IFutureResource | ||
public interface INetwork : IFutureResource | ||
{ | ||
/// <summary> | ||
/// Gets the name. | ||
/// </summary> | ||
/// <exception cref="InvalidOperationException">Network has not been created.</exception> | ||
[NotNull] | ||
new string Name { get; } | ||
|
||
/// <summary> | ||
/// Creates the network. | ||
/// </summary> | ||
/// <param name="ct">Cancellation token.</param> | ||
/// <returns>Task that completes when the network has been created.</returns> | ||
new Task CreateAsync(CancellationToken ct = default); | ||
|
||
/// <summary> | ||
/// Deletes the network. | ||
/// </summary> | ||
/// <param name="ct">Cancellation token.</param> | ||
/// <returns>Task that completes when the network has been deleted.</returns> | ||
new Task DeleteAsync(CancellationToken ct = default); | ||
string Name { get; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters