models

package
v0.0.0-...-c35b06e Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2026 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Artifact

type Artifact struct {
	AttrPath string `json:"attr_path,omitempty" bson:"attr_path,omitempty" validate:"required"`
	AttrFrom string `json:"from_path,omitempty" bson:"from_path,omitempty"`
	Readonly bool   `json:"readonly" bson:"readonly" default:"true"`
}

type CPU

type CPU struct {
	Model        string  `bson:"model,omitempty" json:"model,omitempty"`
	FrequencyGhz float64 `bson:"frequency,omitempty" json:"frequency,omitempty"`
	Cores        int     `bson:"cores,omitempty" json:"cores,omitempty"`
	Architecture string  `bson:"architecture,omitempty" json:"architecture,omitempty"`
}

CPU is a struct that represents a CPU

type Container

type Container struct {
	Image   string            `json:"image,omitempty" bson:"image,omitempty"`     // Image is the container image TEMPO
	Command string            `json:"command,omitempty" bson:"command,omitempty"` // Command is the container command
	Args    string            `json:"args,omitempty" bson:"args,omitempty"`       // Args is the container arguments
	Env     map[string]string `json:"env,omitempty" bson:"env,omitempty"`         // Env is the container environment variables
	Volumes map[string]string `json:"volumes,omitempty" bson:"volumes,omitempty"` // Volumes is the container volumes

	Exposes []Expose `bson:"exposes,omitempty" json:"exposes,omitempty"` // Expose is the execution
}

type Expose

type Expose struct {
	Port    int    `json:"port,omitempty" bson:"port,omitempty"`       // Port is the port
	Reverse string `json:"reverse,omitempty" bson:"reverse,omitempty"` // Reverse is the reverse
	PAT     int    `json:"pat,omitempty" bson:"pat,omitempty"`         // PAT is the PAT
}

type GPU

type GPU struct {
	Model    string         `bson:"model,omitempty" json:"model,omitempty"`
	MemoryGb float64        `bson:"memory,omitempty" json:"memory,omitempty" description:"Units in MB"`
	Cores    map[string]int `bson:"cores,omitempty" json:"cores,omitempty"`
}

type InOutputs

type InOutputs struct {
	Params    []Param    `json:"parameters" bson:"parameters"`
	Artifacts []Artifact `json:"artifacts" bson:"artifacts"`
}

type Metric

type Metric struct {
	Name  string  `json:"name"`
	Value float64 `json:"value"`
	Error error   `json:"error"`
}

type MetricResume

type MetricResume struct {
	Delta     float64 `json:"delta"`
	LastValue float64 `json:"last_value"`
}

type MetricsSnapshot

type MetricsSnapshot struct {
	From    string   `json:"origin"`
	Metrics []Metric `json:"metrics"`
}

type Param

type Param struct {
	Name      string `json:"name" bson:"name" validate:"required"`
	Attr      string `json:"attr,omitempty" bson:"attr,omitempty"`
	Value     string `json:"value,omitempty" bson:"value,omitempty"`
	Origin    string `json:"origin,omitempty" bson:"origin,omitempty"`
	Readonly  bool   `json:"readonly" bson:"readonly" default:"true"`
	Optionnal bool   `json:"optionnal" bson:"optionnal" default:"true"`
}

type RAM

type RAM struct {
	SizeGb float64 `bson:"size,omitempty" json:"size,omitempty" description:"Units in MB"`
	Ecc    bool    `bson:"ecc" json:"ecc" default:"true"`
}

Jump to

Keyboard shortcuts

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