Documentation
¶
Index ¶
- Constants
- func DenormalizeEnvVars(envVars map[string]string, cwd string) []string
- func NormalizeEnvVars(osVars []string, cwd string, keep func(string) bool) map[string]string
- func NormalizedEnvVars() map[string]string
- func SkipNode(n *graph.Node) bool
- type ABFSBackend
- func (c *ABFSBackend) ApplyIfCached(step *build.Step) (bool, error)
- func (c *ABFSBackend) BuildInit(engine *build.Engine) error
- func (c *ABFSBackend) Close() error
- func (c *ABFSBackend) CreateDirs(step *build.Step) error
- func (c *ABFSBackend) CreateRSP(step *build.Step) error
- func (c *ABFSBackend) ExecLocal(ctx context.Context, step *build.Step) build.ExecResult
- func (c *ABFSBackend) ExecRemote(ctx context.Context, step *build.Step) build.ExecResult
- func (c *ABFSBackend) FinalizeBuild(err error) error
- func (c *ABFSBackend) FinalizeStep(step *build.Step)
- func (c *ABFSBackend) GetDeps(n *graph.Node) ([]string, error)
- func (c *ABFSBackend) GraphLoaded(g *graph.Graph) error
- func (c *ABFSBackend) GraphLoading() error
- func (c *ABFSBackend) Init(params *ninjaruntime.RunParameters, cmd *string, args *[]string) error
- func (c *ABFSBackend) IsClean(step *build.Step) (bool, error)
- func (c *ABFSBackend) IsRemotable(step *build.Step) bool
- func (c *ABFSBackend) MkdirAll(dir string) error
- func (c *ABFSBackend) Parsed(ninjas *ninja.ParsedFiles) error
- func (c *ABFSBackend) ReadNinjaFile(fileName string) ([]byte, parse.ReleaseFileFunc, error)
- func (c *ABFSBackend) StoreResults(ctx context.Context, eval *Eval, resp *binding.EvalResponse) error
- type Configuration
- type Eval
- type FailedStep
- type HashFetchReq
- type HashStat
Constants ¶
const ConfigFile = ".ninjago.conf"
Variables ¶
This section is empty.
Functions ¶
func DenormalizeEnvVars ¶
DenormalizeEnvVars expands the env vars by replacing CWD with the current working directory.
func NormalizeEnvVars ¶
NormalizeEnvVars returns a map of environment variables that have been normalized to have "CWD" instead of the current working directory. The prefix "CWD/" is removed from the values to help match environments with absolute vs. relative paths (unless the value contains a path separator, in which case it is left unchanged). The keep function is used to filter environment variables. If keep returns true, the variable is included in the result.
func NormalizedEnvVars ¶
NormalizedEnvVars returns a map of environment variables that have been normalized using the default ignore list.
Types ¶
type ABFSBackend ¶
type ABFSBackend struct {
// contains filtered or unexported fields
}
func NewABFSBackend ¶
func NewABFSBackend() *ABFSBackend
func (*ABFSBackend) ApplyIfCached ¶
func (c *ABFSBackend) ApplyIfCached(step *build.Step) (bool, error)
ApplyIfCached implements backends.Backend.
func (*ABFSBackend) BuildInit ¶
func (c *ABFSBackend) BuildInit(engine *build.Engine) error
BuildInit implements backends.Backend.
func (*ABFSBackend) Close ¶
func (c *ABFSBackend) Close() error
func (*ABFSBackend) CreateDirs ¶
func (c *ABFSBackend) CreateDirs(step *build.Step) error
CreateDirs implements backends.Backend.
func (*ABFSBackend) CreateRSP ¶
func (c *ABFSBackend) CreateRSP(step *build.Step) error
CreateRSP implements backends.Backend.
func (*ABFSBackend) ExecLocal ¶
func (c *ABFSBackend) ExecLocal(ctx context.Context, step *build.Step) build.ExecResult
ExecLocal implements backends.Backend.
func (*ABFSBackend) ExecRemote ¶
func (c *ABFSBackend) ExecRemote(ctx context.Context, step *build.Step) build.ExecResult
ExecRemote implements backends.Backend.
func (*ABFSBackend) FinalizeBuild ¶
func (c *ABFSBackend) FinalizeBuild(err error) error
FinalizeBuild implements backends.Backend.
func (*ABFSBackend) FinalizeStep ¶
func (c *ABFSBackend) FinalizeStep(step *build.Step)
FinalizeStep implements backends.Backend.
func (*ABFSBackend) GetDeps ¶
func (c *ABFSBackend) GetDeps(n *graph.Node) ([]string, error)
GetDeps implements backends.Backend.
func (*ABFSBackend) GraphLoaded ¶
func (c *ABFSBackend) GraphLoaded(g *graph.Graph) error
GraphLoaded implements backends.Backend.
func (*ABFSBackend) GraphLoading ¶
func (c *ABFSBackend) GraphLoading() error
GraphLoading implements backends.Backend.
func (*ABFSBackend) Init ¶
func (c *ABFSBackend) Init(params *ninjaruntime.RunParameters, cmd *string, args *[]string) error
Init implements backends.Backend.
func (*ABFSBackend) IsClean ¶
func (c *ABFSBackend) IsClean(step *build.Step) (bool, error)
IsClean implements backends.Backend.
func (*ABFSBackend) IsRemotable ¶
func (c *ABFSBackend) IsRemotable(step *build.Step) bool
IsRemotable implements backends.Backend.
func (*ABFSBackend) MkdirAll ¶
func (c *ABFSBackend) MkdirAll(dir string) error
func (*ABFSBackend) Parsed ¶
func (c *ABFSBackend) Parsed(ninjas *ninja.ParsedFiles) error
Parsed implements backends.Backend.
func (*ABFSBackend) ReadNinjaFile ¶
func (c *ABFSBackend) ReadNinjaFile(fileName string) ([]byte, parse.ReleaseFileFunc, error)
ReadNinjaFile implements backends.Backend.
func (*ABFSBackend) StoreResults ¶
func (c *ABFSBackend) StoreResults(ctx context.Context, eval *Eval, resp *binding.EvalResponse) error
type Configuration ¶
type Configuration struct {
Chroot string
CacheDir string
LocalOnly bool
FetchTimeout time.Duration
IgnoreEvalCacheRegexStr string `json:"IgnoreEvalCacheRegex"`
IgnoreEvalCacheRegex *regexp.Regexp `json:"-"`
LogMismatches bool
PSICPU float64
PSIIO float64
PSIMem float64
OrderOnlyAsRegularInput bool
NoFallbackIfRemoteFails bool
EvalSalt string
EvalNoCache bool
NoARES bool
RemoteBootstrap bool
RemoteCC bool
RemoteJava bool
RemoteRust bool
RemoteKotlin bool
RemoteMetalava bool
StrictTappingOff bool
PrefetchInputs bool
IgnoreSoongEnvAvail bool
SkipTapSoongBuild bool
ConcurrencyMultiplier float64
}
func LoadConfig ¶
func LoadConfig() *Configuration
func ReadConfig ¶
func ReadConfig(configFile string) (*Configuration, error)
func (*Configuration) Write ¶
func (c *Configuration) Write(p string) (retErr error)
type FailedStep ¶
type FailedStep struct {
// contains filtered or unexported fields
}
type HashFetchReq ¶
type HashFetchReq struct {
// contains filtered or unexported fields
}