MCPcopy Create free account
hub / github.com/OpenAtomFoundation/SmartIDE / PortSimple

Struct PortSimple

cli/pkg/docker/compose/port_simple.go:28–32  ·  view source on GitHub ↗

端口(Short Syntax)

Source from the content-addressed store, hash-verified

26
27// 端口(Short Syntax)
28type PortSimple struct {
29 Host string // 外部主机的端口号
30 Container string // 内部容器的端口号
31 Protocol string // 协议
32}
33
34// 新建一个端口A到端口B的映射
35func NewPortSimple(hostPort int, containerPort int) PortSimple {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected