dto

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2023 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Overview

Copyright (C) 2023 wwhai

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CronTaskCreateDTO

type CronTaskCreateDTO struct {
	Name     string   `form:"name" binding:"required" json:"name"`
	CronExpr string   `form:"cronExpr" binding:"required" json:"cronExpr"`
	TaskType string   `form:"taskType" binding:"required" json:"taskType"` // CRON_TASK_TYPE
	Args     *string  `form:"args" json:"args"`                            // "param1 param2 param3"
	Env      []string `form:"env" json:"env"`                              // ["A=e1", "B=e2", "C=e3"]
	Script   string   `form:"script" json:"script"`                        // 脚本内容,base64编码
}

type CronTaskUpdateDTO

type CronTaskUpdateDTO struct {
	UUID     string   `form:"uuid" binding:"required" json:"uuid"`
	Name     string   `form:"name" json:"name"`
	CronExpr string   `form:"cronExpr" json:"cronExpr"`
	TaskType string   `form:"taskType" json:"taskType"` // CRON_TASK_TYPE
	Args     *string  `form:"args" json:"args"`         // "param1 param2 param3"
	Env      []string `form:"env" json:"env"`           // ["A=e1", "B=e2", "C=e3"]
	Script   string   `form:"script" json:"script"`     // 脚本内容,base64编码
}

type DataSchema

type DataSchema struct {
	UUID   string `gorm:"not null"`
	Name   string `gorm:"not null"` // 名称
	Type   string `gorm:"not null"` // 类型, LINE,PINE,BAR,TXT
	Schema string `gorm:"not null"` // 数据规范
}

type EtcNetworkConfig

type EtcNetworkConfig struct {
	Name        string   `json:"name"`      // eth1 eth0
	Interface   string   `json:"interface"` // eth1 eth0
	Address     string   `json:"address"`
	Netmask     string   `json:"netmask"`
	Gateway     string   `json:"gateway"`
	DNS         []string `json:"dns"`
	DHCPEnabled bool     `json:"dhcp_enabled"`
}

type HwPort

type HwPort struct {
	Dhcp4       bool     `yaml:"dhcp4" json:"dhcp4,omitempty"`
	Addresses   []string `yaml:"addresses" json:"addresses,omitempty"`
	Gateway4    string   `yaml:"gateway4" json:"gateway4,omitempty"`
	Nameservers []string `yaml:"nameservers" json:"nameservers,omitempty"`
}

type LuaTemplateVariables

type LuaTemplateVariables struct {
	Name  string `json:"name"`
	Type  string `json:"type"`
	Label string `json:"label"`
	Value any    `json:"value"`
}

变量

type NetplanConfigDto

type NetplanConfigDto struct {
	Network network `yaml:"network" json:"network,omitempty"`
}

type PageRequest

type PageRequest struct {
	Current     int `json:"current,omitempty"`
	Size        int `json:"size,omitempty"`
	SearchCount int `json:"searchCount,omitempty"`
}

type PageResult

type PageResult struct {
	Current int `json:"current"`
	Size    int `json:"size"`
	Total   int `json:"total"`
	Records any `json:"records"`
}

Jump to

Keyboard shortcuts

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