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/>.
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/>.
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 EtcNetworkConfig ¶
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"`
}