Documentation
¶
Overview ¶
Package executionflags is the shared argument/environment boundary for run allocation injection and opt-in list compatibility filters.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddRequirementFlags ¶ added in v0.0.52
func AddRequirementFlags(flags *pflag.FlagSet, r *execution.Requirements)
AddRequirementFlags binds job overrides, never actual allocation facts.
Types ¶
type Filter ¶
Filter is a candidate descriptor, not a lease request. An unresolved job can be included as a bootstrap candidate, but must never be labeled compatible.
type Options ¶
type Options struct {
CPU *string
Memory *string
EphemeralStorage *string
Platform *string
Image *string
ImageDigest *string
ImageID *string
}
Options preserves presence so an explicit empty argument cannot fall back to an environment value. Environment lookup happens at execution, not binding.
func (Options) HasArguments ¶ added in v0.0.52
HasArguments reports explicit allocation arguments, without inspecting the environment. Submission uses this to reject allocation-only flags without run.
func (Options) Parse ¶
Parse resolves each argument independently ahead of its corresponding environment variable. No host detection, deployment defaults, or requested requirements are used as evidence of actual capacity. Pass os.LookupEnv in production, or nil to ignore the environment.
func (Options) ParseFilter ¶
func (o Options) ParseFilter(enabled, includeUnresolved bool, lookupEnv func(string) (string, bool)) (*Filter, error)
ParseFilter does not inspect inherited allocation variables without explicit opt-in. In particular, listing children inside a worker must not silently hide children that require a different environment.