mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-23 19:05:37 +00:00
* bump containerd-dev to 2.0.2 Signed-off-by: Avi Deitcher <avi@deitcher.net> * update pkg/init libs to containerd-20 Signed-off-by: Avi Deitcher <avi@deitcher.net> * bump linuxkit CLI containerd deps to 20 Signed-off-by: Avi Deitcher <avi@deitcher.net> * update test/pkg/containerd to work with containerd v2.x tests Signed-off-by: Avi Deitcher <avi@deitcher.net> * update containerd-dev deps Signed-off-by: Avi Deitcher <avi@deitcher.net> * update pkg/init and pkg/containerd dependencies Signed-off-by: Avi Deitcher <avi@deitcher.net> * update test/pkg/containerd deps Signed-off-by: Avi Deitcher <avi@deitcher.net> --------- Signed-off-by: Avi Deitcher <avi@deitcher.net>
23 lines
341 B
Go
Vendored
23 lines
341 B
Go
Vendored
package netlink
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
// Chain contains the attributes of a Chain
|
|
type Chain struct {
|
|
Parent uint32
|
|
Chain uint32
|
|
}
|
|
|
|
func (c Chain) String() string {
|
|
return fmt.Sprintf("{Parent: %d, Chain: %d}", c.Parent, c.Chain)
|
|
}
|
|
|
|
func NewChain(parent uint32, chain uint32) Chain {
|
|
return Chain{
|
|
Parent: parent,
|
|
Chain: chain,
|
|
}
|
|
}
|