mirror of
https://github.com/moby/buildkit.git
synced 2026-08-12 12:15:16 +00:00
20 lines
316 B
Go
20 lines
316 B
Go
package network
|
|
|
|
import (
|
|
"io"
|
|
|
|
specs "github.com/opencontainers/runtime-spec/specs-go"
|
|
)
|
|
|
|
// Provider interface for Network
|
|
type Provider interface {
|
|
New() (Namespace, error)
|
|
}
|
|
|
|
// Namespace of network for workers
|
|
type Namespace interface {
|
|
io.Closer
|
|
// Set the namespace on the spec
|
|
Set(*specs.Spec) error
|
|
}
|