(s RuntimeStateType)
| 49 | } |
| 50 | |
| 51 | func (info *RuntimeInfo) SetState(s RuntimeStateType) { |
| 52 | logs.V(3).Infof("update runtime %s state %s to %s", info.RuntimeID, info.State, s) |
| 53 | info.State = s |
| 54 | } |
| 55 | |
| 56 | func (info *RuntimeInfo) SetResource(mem uint64, cpu int64) { |
| 57 | logs.V(3).Infof("update runtime %s memory size %d to %d; cpu size %d to %d", info.RuntimeID, |