manifest

package
v0.0.0-...-4f4fead Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manifest

type Manifest struct {
	Runtimes           []ManifestRuntime `yaml:"runtimes" json:"runtimes"`
	PeriodMinutes      int               `yaml:"periodMinutes" json:"periodMinutes"`
	TaskTimeoutSeconds int               `yaml:"taskTimeoutSeconds" json:"taskTimeoutSeconds"`
}

func (*Manifest) GetLabels

func (m *Manifest) GetLabels(language string) map[string]string

func (*Manifest) GetRuntimeForLanguage

func (m *Manifest) GetRuntimeForLanguage(language string) (*ManifestRuntime, bool)

func (*Manifest) GetRuntimes

func (m *Manifest) GetRuntimes() []ManifestRuntime

func (*Manifest) Load

func (m *Manifest) Load(data []byte) error

type ManifestRuntime

type ManifestRuntime struct {
	Language            string              `yaml:"language" json:"language"`
	Image               string              `yaml:"image" json:"-"`
	Version             string              `yaml:"version" json:"version"`
	Instances           int                 `yaml:"instances" json:"-"`
	SchedulingAlgorithm SchedulingAlgorithm `yaml:"schedulingAlgorithm" json:"-"`
	Runner              string              `yaml:"runner" json:"-"`
	Setup               string              `yaml:"setup" json:"-"`
	Labels              map[string]string   `yaml:"labels" json:"-"`
}

type SchedulingAlgorithm

type SchedulingAlgorithm = string
const (
	Random     SchedulingAlgorithm = "random"
	RoundRobin SchedulingAlgorithm = "round-robin"
)

Jump to

Keyboard shortcuts

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