========================== context ========================== // Context exposes the workspace's global config (platform, project, build settings, caches, toolchain) to build components, decoupling them from Celer.
| 4 | // Context exposes the workspace's global config (platform, project, build |
| 5 | // settings, caches, toolchain) to build components, decoupling them from Celer. |
| 6 | type Context interface { |
| 7 | Version() string |
| 8 | Platform() Platform |
| 9 | RootFS() RootFS |
| 10 | Project() Project |
| 11 | BuildType() string |
| 12 | LibraryFolder() string |
| 13 | Downloads() string |
| 14 | Jobs() int |
| 15 | Offline() bool |
| 16 | Verbose() bool |
| 17 | InstalledDir() string |
| 18 | InstalledDevDir() string |
| 19 | PkgCacheConfig() PkgCacheConfig |
| 20 | DevCacheConfig() DevCacheConfig |
| 21 | ProxyHostPort() (host string, port int) |
| 22 | CCacheEnabled() bool |
| 23 | GenerateToolchainFile() error |
| 24 | ExprVars() *ExprVars |
| 25 | PythonConfig() PythonConfig |
| 26 | Experiment() Experiment |
| 27 | } |
| 28 | |
| 29 | // PythonConfig exposes the Python interpreter setup for building python ports. |
| 30 | type PythonConfig interface { |
no outgoing calls
no test coverage detected