MCPcopy Index your code
hub / github.com/coder/coder / Match

Method Match

codersdk/workspaceagents.go:525–533  ·  view source on GitHub ↗
(idOrName string)

Source from the content-addressed store, hash-verified

523}
524
525func (c *WorkspaceAgentContainer) Match(idOrName string) bool {
526 if c.ID == idOrName {
527 return true
528 }
529 if c.FriendlyName == idOrName {
530 return true
531 }
532 return false
533}
534
535// WorkspaceAgentContainerPort describes a port as exposed by a container.
536type WorkspaceAgentContainerPort struct {

Callers 15

getRoutePatternFunction · 0.80
TestReadCustomRolesFunction · 0.80
isValidSessionDirFunction · 0.80
TestPeerDiagnosticsFunction · 0.80
testingWithOwnerUserFunction · 0.80
xerrorsFunction · 0.80
databaseImportFunction · 0.80
publishInTransactionFunction · 0.80
HttpAPIErrorMessageFunction · 0.80

Calls

no outgoing calls

Tested by 4

TestReadCustomRolesFunction · 0.64
TestPeerDiagnosticsFunction · 0.64
TestSafeAgentNameFunction · 0.64
TestExpandedAgentNameFunction · 0.64