MCPcopy Create free account
hub / github.com/caoyingjunz/pixiu / Get

Method Get

pkg/controller/node/node.go:119–129  ·  view source on GitHub ↗
(ctx context.Context, nodeId int64)

Source from the content-addressed store, hash-verified

117 klog.Errorf("pre-update check failed for node(%d): %v", nodeId, err)
118 return err
119 }
120
121 updates := make(map[string]interface{})
122 if req.Name != nil {
123 updates["name"] = *req.Name
124 }
125 if req.Ip != nil {
126 updates["ip"] = *req.Ip
127 }
128 if req.Auth != nil {
129 authStr, e := req.Auth.Marshal()
130 if e != nil {
131 klog.Errorf("marshal auth: %v", e)
132 return errors.ErrInvalidRequest

Callers

nothing calls this directly

Calls 3

model2NodeFunction · 0.85
GetNodeMethod · 0.65
PlanMethod · 0.65

Tested by

no test coverage detected