config

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Processor

type Processor struct {
	Name      string    `json:"name" yaml:"name"`
	Branch    string    `json:"branch" yaml:"branch"`
	Runtime   string    `json:"runtime" yaml:"runtime"`
	Resources Resources `json:"resources" yaml:"resources"`
	Content   []string  `json:"content" yaml:"content"`
	Command   []string  `json:"command" yaml:"command"`
}

Spec for what to process

type ResourceLimit

type ResourceLimit struct {
	Min string `json:"min,omitempty" yaml:"min,omitempty"`
	Max string `json:"max,omitempty" yaml:"max,omitempty"`
}

Resource limits

type Resources

type Resources struct {
	CPU ResourceLimit `json:"cpu,omitempty" yaml:"cpu,omitempty"`
	Mem ResourceLimit `json:"mem,omitempty" yaml:"mem,omitempty"`
}

Resources for the processor

Jump to

Keyboard shortcuts

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