Documentation ¶
Index ¶
- type Class
- type Classes
- func (c *Classes) DeleteKey(key string)
- func (c *Classes) DeleteKeys(keys []string)
- func (c *Classes) Do(f func(classMap *map[string]*Class) error) error
- func (c *Classes) Foreach(do func(string, *Class) bool)
- func (c *Classes) GetClass(key string) (class *Class, ok bool)
- func (c *Classes) UpdateClass(key string, class *Class)
- type Id
- type ResourceLimits
- type ResourceWants
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Class ¶
type Class struct { Identifier Id `yaml:"name"` Defaults gera.Map[string, string] `yaml:"defaults"` Vars gera.Map[string, string] `yaml:"vars"` Control struct { Mode controlmode.ControlMode `yaml:"mode"` } `yaml:"control"` Command *common.CommandInfo `yaml:"command"` Wants ResourceWants `yaml:"wants"` Limits *ResourceLimits `yaml:"limits"` Bind []channel.Inbound `yaml:"bind"` Properties gera.Map[string, string] `yaml:"properties"` Constraints []constraint.Constraint `yaml:"constraints"` Connect []channel.Outbound `yaml:"connect"` UpdatedTimestamp time.Time `yaml:"-"` }
↓ We need the roles tree to know *where* to run it and how to *configure* it, but
the following information is enough to run the task even with no environment or role Class.
func (*Class) MarshalYAML ¶
func (*Class) UnmarshalYAML ¶
type Classes ¶
type Classes struct {
// contains filtered or unexported fields
}
func NewClasses ¶
func NewClasses() *Classes
func (*Classes) DeleteKeys ¶
func (*Classes) UpdateClass ¶
type Id ¶
func (*Id) UnmarshalYAML ¶
type ResourceLimits ¶ added in v0.68.0
func (*ResourceLimits) UnmarshalYAML ¶ added in v0.68.0
func (rw *ResourceLimits) UnmarshalYAML(unmarshal func(interface{}) error) (err error)
type ResourceWants ¶
type ResourceWants struct { Cpu *float64 `yaml:"cpu"` Memory *float64 `yaml:"memory"` Ports port.Ranges `yaml:"ports,omitempty"` }
func (*ResourceWants) UnmarshalYAML ¶
func (rw *ResourceWants) UnmarshalYAML(unmarshal func(interface{}) error) (err error)
Click to show internal directories.
Click to hide internal directories.