model

package
v0.0.0-...-d1a390d Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: Apache-2.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 Agent

type Agent struct {
	Name    string   `json:"Name" validate:"required"`
	Host    string   `json:"IP" validate:"required"`
	Accepts []string `json:"Accepts" validate:"required,dive,required"` // Refs []TaskDefinition
}

type Task

type Task struct {
	Name   string   `json:"Name" gorm:"primaryKey"`
	Params []string `json:"Params"`
}

type TaskDefinition

type TaskDefinition struct {
}

type TaskRun

type TaskRun struct {
	ID         string   `json:"ID" gorm:"primaryKey"`
	TaskName   string   `json:"TaskName"`
	Params     []string `json:"Params"`
	StartAt    int32    `json:"StartAt"`
	FinishedAt int32    `json:"FinishedAt"`
	Status     string   `json:"Status"`
}

type Trigger

type Trigger struct {
	Name   string   `json:"Name" gorm:"primaryKey"`
	Params []string `json:"Params"`
}

Jump to

Keyboard shortcuts

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