Cosmos Nicolaou | 6c6fa11 | 2014-08-19 13:22:33 -0700 | [diff] [blame] | 1 | // Package Profiles, and its children, provide implementations of the |
| 2 | // veyron2.Profile interface. These implementations should import all of the |
| 3 | // packages that they require to implement Profile-specific functionality. |
| 4 | // |
| 5 | // The taxonomy used to organise Profiles may be arbitrary and the directory |
| 6 | // structure used here is just one convention for how to do so. This directory |
| 7 | // structure reflects the generality of a Profile at any given depth in the |
| 8 | // hierarchy, with higher levels of the directory structure being more |
| 9 | // generic and lower levels more specific. |
| 10 | // |
| 11 | // Profiles register themselves by calling veyron2/rt.RegisterProfile in their |
| 12 | // init function and are hence are chosen by importing them into an |
Cosmos Nicolaou | 454030b | 2014-12-04 20:39:40 -0800 | [diff] [blame] | 13 | // applications main package. It is an error to import more than one profile, |
| 14 | // and the registration mechanism will panic if this is attempted. |
| 15 | // Commonly used functionality is placed in profiles/internal for use by |
| 16 | // all profiles. |
Cosmos Nicolaou | 6c6fa11 | 2014-08-19 13:22:33 -0700 | [diff] [blame] | 17 | // |
| 18 | // This top level directory contains a 'generic' Profile and utility routines |
Cosmos Nicolaou | 39e3ae5 | 2014-11-14 13:30:01 -0800 | [diff] [blame] | 19 | // used by other Profiles. It should be imported whenever possible and |
| 20 | // particularly by tests. |
Cosmos Nicolaou | 6c6fa11 | 2014-08-19 13:22:33 -0700 | [diff] [blame] | 21 | // |
Cosmos Nicolaou | 39e3ae5 | 2014-11-14 13:30:01 -0800 | [diff] [blame] | 22 | // The 'roaming' Profile adds operating system support for varied network |
Cosmos Nicolaou | 6c6fa11 | 2014-08-19 13:22:33 -0700 | [diff] [blame] | 23 | // configurations and in particular dhcp. It should be used by any application |
Cosmos Nicolaou | 39e3ae5 | 2014-11-14 13:30:01 -0800 | [diff] [blame] | 24 | // that may 'roam' or any may be behind a 1-1 NAT. The 'static' profile |
| 25 | // does not provide dhcp support, but is otherwise like the roaming profile. |
Cosmos Nicolaou | 6c6fa11 | 2014-08-19 13:22:33 -0700 | [diff] [blame] | 26 | // |
Cosmos Nicolaou | 6c6fa11 | 2014-08-19 13:22:33 -0700 | [diff] [blame] | 27 | package profiles |