()
| 62 | } |
| 63 | |
| 64 | func isUserRoot() (int, bool) { |
| 65 | uid := os.Getuid() |
| 66 | |
| 67 | return uid, uid == 0 |
| 68 | } |
| 69 | |
| 70 | func NewWorkerNode(cpApi proto.CpiInterfaceClient, config config.WorkerNodeConfig, name ...string) *WorkerNode { |
| 71 | hostName, err := os.Hostname() |