Documentation ¶ Index ¶ type Append type Manager func NewManager(resourceModifiers ...*Modifier) *Manager func (manager *Manager) Acquire(resources map[string]float64) *Modifier type Modifier func (modifier *Modifier) Matches(requested map[string]float64) bool Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Append ¶ type Append struct { Run []string `yaml:"run"` } type Manager ¶ type Manager struct { // contains filtered or unexported fields } func NewManager ¶ func NewManager(resourceModifiers ...*Modifier) *Manager func (*Manager) Acquire ¶ func (manager *Manager) Acquire(resources map[string]float64) *Modifier type Modifier ¶ type Modifier struct { Match map[string]float64 `yaml:"match"` Append Append `yaml:"append"` sync.Mutex } func (*Modifier) Matches ¶ func (modifier *Modifier) Matches(requested map[string]float64) bool Source Files ¶ View all Source files resourcemodifier.go Click to show internal directories. Click to hide internal directories.