Documentation
¶
Index ¶
Constants ¶
View Source
const WorkloadsField = "workloads"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Workload ¶
type Workload struct {
// Basic details
Name string `yaml:"-"`
Override plan.Override `yaml:"override,omitempty"`
// Options for command execution
Environment map[string]string `yaml:"environment,omitempty"`
UserID *int `yaml:"user-id,omitempty"`
User string `yaml:"user,omitempty"`
GroupID *int `yaml:"group-id,omitempty"`
Group string `yaml:"group,omitempty"`
}
type WorkloadsSection ¶
func (*WorkloadsSection) Equal ¶ added in v1.29.0
func (ws *WorkloadsSection) Equal(other plan.Section) bool
func (*WorkloadsSection) Immutable ¶ added in v1.29.0
func (ws *WorkloadsSection) Immutable()
func (*WorkloadsSection) IsZero ¶
func (ws *WorkloadsSection) IsZero() bool
func (*WorkloadsSection) Validate ¶
func (ws *WorkloadsSection) Validate() error
type WorkloadsSectionExtension ¶
type WorkloadsSectionExtension struct{}
func (*WorkloadsSectionExtension) CombineSections ¶
func (*WorkloadsSectionExtension) ParseSection ¶
func (*WorkloadsSectionExtension) ValidatePlan ¶
func (ext *WorkloadsSectionExtension) ValidatePlan(p *plan.Plan) error
ValidatePlan validates the services layer against the workloads present in the workloads section.
Click to show internal directories.
Click to hide internal directories.