Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
| ... | ... |
@@ -16,6 +16,7 @@ import ( |
| 16 | 16 |
"github.com/moby/buildkit/executor" |
| 17 | 17 |
"github.com/moby/buildkit/executor/oci" |
| 18 | 18 |
"github.com/moby/buildkit/executor/resources" |
| 19 |
+ resourcestypes "github.com/moby/buildkit/executor/resources/types" |
|
| 19 | 20 |
"github.com/moby/buildkit/executor/runcexecutor" |
| 20 | 21 |
"github.com/moby/buildkit/identity" |
| 21 | 22 |
"github.com/moby/buildkit/solver/pb" |
| ... | ... |
@@ -128,8 +129,8 @@ func (iface *lnInterface) init(c *libnetwork.Controller, n *libnetwork.Network) |
| 128 | 128 |
} |
| 129 | 129 |
|
| 130 | 130 |
// TODO(neersighted): Unstub Sample(), and collect data from the libnetwork Endpoint. |
| 131 |
-func (iface *lnInterface) Sample() (*network.Sample, error) {
|
|
| 132 |
- return &network.Sample{}, nil
|
|
| 131 |
+func (iface *lnInterface) Sample() (*resourcestypes.NetworkSample, error) {
|
|
| 132 |
+ return &resourcestypes.NetworkSample{}, nil
|
|
| 133 | 133 |
} |
| 134 | 134 |
|
| 135 | 135 |
func (iface *lnInterface) Set(s *specs.Spec) error {
|