MCPcopy Create free account
hub / github.com/celer-pkg/celer / Context

Interface Context

context/context.go:6–27  ·  view source on GitHub ↗

========================== context ========================== // Context exposes the workspace's global config (platform, project, build settings, caches, toolchain) to build components, decoupling them from Celer.

Source from the content-addressed store, hash-verified

4// Context exposes the workspace's global config (platform, project, build
5// settings, caches, toolchain) to build components, decoupling them from Celer.
6type 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.
30type PythonConfig interface {

Callers 86

versionMethod · 0.65
resolveAllRefsMethod · 0.65
ExportMethod · 0.65
GetDirMethod · 0.65
InstallMethod · 0.65
InstallFromSourceMethod · 0.65
doInstallFromPackageMethod · 0.65
prepareTmpDepsMethod · 0.65
writeTraceFileMethod · 0.65
stripDeployedMethod · 0.65
doRemovePortMethod · 0.65
initBuildConfigMethod · 0.65

Implementers 4

Celerconfigs/celer.go
fakeContextconfigs/pkgcache_artifact_test.go
fakeContextcmds/cmd_test.go
fakeContextpkgcache/cache_repo_test.go

Calls

no outgoing calls

Tested by

no test coverage detected