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 ¶
This section is empty.
Types ¶
type Filter ¶
type Filter struct {
Allocation execution.Allocation
IncludeUnresolved bool
}
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) 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.