models

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dependency

type Dependency struct {
	Id            primitive.ObjectID      `json:"_id" bson:"_id"`
	NodeId        primitive.ObjectID      `json:"node_id" bson:"node_id"`
	Type          string                  `json:"type" bson:"type"`
	Name          string                  `json:"name" bson:"name"`
	Version       string                  `json:"version" bson:"version"`
	LatestVersion string                  `json:"latest_version,omitempty" bson:"latest_version,omitempty"`
	Description   string                  `json:"description" bson:"description"`
	Result        entity.DependencyResult `json:"result" bson:"-"`
}

type Log

type Log struct {
	Id       primitive.ObjectID `json:"_id" bson:"_id"`
	TaskId   primitive.ObjectID `json:"task_id" bson:"task_id"`
	Content  string             `json:"content" bson:"content"`
	UpdateTs time.Time          `json:"update_ts" bson:"update_ts"`
}

type Setting

type Setting struct {
	Id           primitive.ObjectID `json:"_id" bson:"_id"`
	Key          string             `json:"key" bson:"key"`
	Name         string             `json:"name" bson:"name"`
	Description  string             `json:"description" bson:"description"`
	Enabled      bool               `json:"enabled" bson:"enabled"`
	Cmd          string             `json:"cmd" bson:"cmd"`
	Proxy        string             `json:"proxy" bson:"proxy"`
	LastUpdateTs time.Time          `json:"last_update_ts" bson:"last_update_ts"`
}

type Task

type Task struct {
	Id        primitive.ObjectID `json:"_id" bson:"_id"`
	Status    string             `json:"status" bson:"status"`
	Error     string             `json:"error" bson:"error"`
	SettingId primitive.ObjectID `json:"setting_id" bson:"setting_id"`
	Type      string             `json:"type" bson:"type"`
	NodeId    primitive.ObjectID `json:"node_id" bson:"node_id"`
	Action    string             `json:"action" bson:"action"`
	DepNames  []string           `json:"dep_names" bson:"dep_names"`
	Upgrade   bool               `json:"upgrade" bson:"upgrade"`
	UpdateTs  time.Time          `json:"update_ts" bson:"update_ts"`
}

Jump to

Keyboard shortcuts

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