Use the same signature for all platforms, but stub the nwIface type.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
| ... | ... |
@@ -17,6 +17,9 @@ const ( |
| 17 | 17 |
SandboxTypeLoadBalancer = iota |
| 18 | 18 |
) |
| 19 | 19 |
|
| 20 |
+// IfaceOption is a function option type to set interface options. |
|
| 21 |
+type IfaceOption func(i *nwIface) |
|
| 22 |
+ |
|
| 20 | 23 |
// Sandbox represents a network sandbox, identified by a specific key. It |
| 21 | 24 |
// holds a list of Interfaces, routes etc, and more can be added dynamically. |
| 22 | 25 |
type Sandbox interface {
|