mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
ffbe62a8f7
runc/libcontainer split the `State` struct into platform specific structs
in
fe1cce69b3
.
As a result, `NamespacePaths` isn't anymore in a global struct and
libnetwork is not cross-compiling in Docker (specifically on Windows) because
`sandbox_externalkey.go` is using `NamespacePaths`.
This patch splits `sandbox_externalkey.go` into platform specific
files and moves common things to a generic `sandbox_externalkey.go`.
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
12 lines
209 B
Go
12 lines
209 B
Go
package libnetwork
|
|
|
|
import "github.com/docker/docker/pkg/reexec"
|
|
|
|
type setKeyData struct {
|
|
ContainerID string
|
|
Key string
|
|
}
|
|
|
|
func init() {
|
|
reexec.Register("libnetwork-setkey", processSetKeyReexec)
|
|
}
|