Improve testability, packaging, and docs
This commit is contained in:
26
src/LibNftables/INftContextHandle.cs
Normal file
26
src/LibNftables/INftContextHandle.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
namespace LibNftables;
|
||||
|
||||
internal interface INftContextHandle : System.IDisposable
|
||||
{
|
||||
bool DryRun { get; set; }
|
||||
|
||||
NftOptimizeFlags OptimizeFlags { get; set; }
|
||||
|
||||
NftInputFlags InputFlags { get; set; }
|
||||
|
||||
NftOutputFlags OutputFlags { get; set; }
|
||||
|
||||
NftDebugLevel DebugFlags { get; set; }
|
||||
|
||||
void BufferOutput();
|
||||
|
||||
void BufferError();
|
||||
|
||||
string? GetOutputBuffer();
|
||||
|
||||
string? GetErrorBuffer();
|
||||
|
||||
void RunCommand(string commandText);
|
||||
|
||||
void RunCommandFromFile(string path);
|
||||
}
|
||||
Reference in New Issue
Block a user