portal_models

package
v0.0.0-...-31148e1 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Job

type Job struct {
	JobName    string   `json:"name"`
	Dockerfile string   `json:"docker_file"`
	Timeout    int64    `json:"timeout"`
	Metrics    []Metric `json:"metrics"`
}

Job - джоба

type JobGroup

type JobGroup struct {
	NameGroup string `json:"name"`
	Order     int    `json:"order"`
	Jobs      []Job  `json:"jobs"`
}

JobGroup - группа джоб

type Metric

type Metric struct {
	MetricName string `json:"key"`
	Regex      string `json:"regex"`
}

Metric - метрики для отчёта

type PortalTask

type PortalTask struct {
	TaskID    string     `json:"id"`
	JobGroups []JobGroup `json:"job_groups"`
}

PortalTask - формальное описание задачи, приходящей из портала

func (*PortalTask) ConvertToAgentTask

func (task *PortalTask) ConvertToAgentTask() models.TaskConfig

ConvertToAgentTask - конвертер в модель агента

type PortalTaskStatus

type PortalTaskStatus struct {
	TaskID             string            `json:"id"`
	TaskStatus         string            `json:"state"`
	UserViewResultData map[string]string `json:"data"`
	DeveloperOnlyData  map[string]string `json:"runner_data"`
}

PortalTaskStatus - статус по задаче в формате портала

Jump to

Keyboard shortcuts

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