Srdjan Petrovic | 1e71110 | 2014-10-08 09:50:12 -0700 | [diff] [blame] | 1 | // +build nacl |
| 2 | |
Benjamin Prosnitz | a375b91 | 2014-10-07 14:53:42 -0700 | [diff] [blame] | 3 | package profiles |
| 4 | |
| 5 | import ( |
| 6 | "veyron.io/veyron/veyron2" |
| 7 | ) |
| 8 | |
| 9 | // Platform returns the description of the Platform this process is running on. |
| 10 | // A default value for veyron2.Platform is provided even if an error is |
| 11 | // returned; nil is never returned for the first return result. |
| 12 | func Platform() (*veyron2.Platform, error) { |
| 13 | d := &veyron2.Platform{ |
| 14 | Vendor: "google", |
| 15 | Model: "generic", |
| 16 | System: "nacl", |
| 17 | Version: "0", |
| 18 | Release: "0", |
| 19 | Machine: "0", |
| 20 | Node: "0", |
| 21 | } |
| 22 | return d, nil |
| 23 | } |