File: api.go

package info (click to toggle)
golang-github-rootless-containers-bypass4netns 0.4.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 596 kB
  • sloc: sh: 1,936; python: 542; makefile: 33
file content (18 lines) | stat: -rw-r--r-- 482 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package com

import (
	"net"
)

type ContainerInterfaces struct {
	ContainerID string      `json:"containerID"`
	Interfaces  []Interface `json:"interfaces"`
	// key is "container-side" port, value is host-side port
	ForwardingPorts map[int]int `json:"forwardingPorts"`
}
type Interface struct {
	Name       string           `json:"name"`
	HWAddr     net.HardwareAddr `json:"hwAddr"`
	Addresses  []net.IPNet      `json:"addresses"`
	IsLoopback bool             `json:"isLoopback"`
}