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

Method Find

cli/internal/biz/workspace/model.go:545–552  ·  view source on GitHub ↗

在扩展的端口列表中查找

(portLabel string)

Source from the content-addressed store, hash-verified

543
544// 在扩展的端口列表中查找
545func (portMaps ExtendPorts) Find(portLabel string) (*config.PortMapInfo, error) {
546 for _, info := range portMaps {
547 if strings.EqualFold(info.HostPortDesc, portLabel) {
548 return &info, nil
549 }
550 }
551 return nil, fmt.Errorf(fmt.Sprintf("没有查找到 %v 对应的端口信息", portLabel))
552}
553
554func (portMaps ExtendPorts) IsExit(portMapInfo *config.PortMapInfo) bool {
555 if portMapInfo == nil {

Callers 4

UpdateSSHConfigMethod · 0.80
loginAndSaveTokenFunction · 0.80
Trigger_ActionFunction · 0.80
waitingAndOpenBrowerFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected