workloads

package
v1.30.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2026 License: GPL-3.0 Imports: 7 Imported by: 0

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"`
}

func (*Workload) Equal

func (w *Workload) Equal(other *Workload) bool

type WorkloadsSection

type WorkloadsSection struct {
	Entries map[string]*Workload `yaml:",inline"`
}

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) CombineSections(sections ...plan.Section) (plan.Section, error)

func (*WorkloadsSectionExtension) ParseSection

func (*WorkloadsSectionExtension) ParseSection(data yaml.Node) (plan.Section, error)

func (*WorkloadsSectionExtension) ValidatePlan

func (ext *WorkloadsSectionExtension) ValidatePlan(p *plan.Plan) error

ValidatePlan validates the services layer against the workloads present in the workloads section.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL