MCPcopy
hub / github.com/cortexlabs/cortex / GetNodesWithNodeGroupName

Method GetNodesWithNodeGroupName

pkg/operator/schema/schema.go:106–114  ·  view source on GitHub ↗
(ngName string)

Source from the content-addressed store, hash-verified

104type VerifyCortexResponse struct{}
105
106func (ir InfoResponse) GetNodesWithNodeGroupName(ngName string) []WorkerNodeInfo {
107 nodesInfo := []WorkerNodeInfo{}
108 for _, nodeInfo := range ir.WorkerNodeInfos {
109 if nodeInfo.NodeGroupName == ngName {
110 nodesInfo = append(nodesInfo, nodeInfo)
111 }
112 }
113 return nodesInfo
114}

Callers 1

printInfoPricingFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected