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

Struct PortComplex

cli/pkg/docker/compose/port_complex.go:22–27  ·  view source on GitHub ↗

端口(Long Syntax)

Source from the content-addressed store, hash-verified

20
21// 端口(Long Syntax)
22type PortComplex struct {
23 Target string `yaml:"target"` // 容器内部端口号
24 Published string `yaml:"published"` // 暴露的端口号
25 Protocol string `yaml:"protocol,omitempty"` // 传输协议
26 // TODO mode
27}
28
29// 实现公共接口
30func (PortComplex) IsPort() bool {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected