MCPcopy
hub / github.com/microsoft/retina / NewRetinaNode

Function NewRetinaNode

pkg/common/node.go:7–13  ·  view source on GitHub ↗
(name string, ip net.IP, zone string)

Source from the content-addressed store, hash-verified

5import "net"
6
7func NewRetinaNode(name string, ip net.IP, zone string) *RetinaNode {
8 return &RetinaNode{
9 name: name,
10 ip: ip,
11 zone: zone,
12 }
13}
14
15func (n *RetinaNode) DeepCopy() interface{} {
16 newN := &RetinaNode{

Callers 5

TestCacheNodesFunction · 0.92
TestAddPodSvcNodeSameIPFunction · 0.92
TestFailDeleteFunction · 0.92

Calls

no outgoing calls

Tested by 5

TestCacheNodesFunction · 0.74
TestAddPodSvcNodeSameIPFunction · 0.74
TestFailDeleteFunction · 0.74