|
|
@ -61,7 +61,7 @@ func (b *BaseApi) LoadDaemonJson(c *gin.Context) {
|
|
|
|
// @Success 200
|
|
|
|
// @Success 200
|
|
|
|
// @Security ApiKeyAuth
|
|
|
|
// @Security ApiKeyAuth
|
|
|
|
// @Router /containers/daemonjson/update [post]
|
|
|
|
// @Router /containers/daemonjson/update [post]
|
|
|
|
// @x-panel-log {"bodyKeys":["key", "value"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"更新 docker daemon.json 配置 [key]=>[value]","formatEN":"Updated the docker daemon.json configuration [key]=>[value]"}
|
|
|
|
// @x-panel-log {"bodyKeys":["key", "value"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"更新配置 [key]","formatEN":"Updated configuration [key]"}
|
|
|
|
func (b *BaseApi) UpdateDaemonJson(c *gin.Context) {
|
|
|
|
func (b *BaseApi) UpdateDaemonJson(c *gin.Context) {
|
|
|
|
var req dto.SettingUpdate
|
|
|
|
var req dto.SettingUpdate
|
|
|
|
if err := helper.CheckBindAndValidate(&req, c); err != nil {
|
|
|
|
if err := helper.CheckBindAndValidate(&req, c); err != nil {
|
|
|
@ -84,7 +84,7 @@ func (b *BaseApi) UpdateDaemonJson(c *gin.Context) {
|
|
|
|
// @Success 200
|
|
|
|
// @Success 200
|
|
|
|
// @Security ApiKeyAuth
|
|
|
|
// @Security ApiKeyAuth
|
|
|
|
// @Router /containers/logoption/update [post]
|
|
|
|
// @Router /containers/logoption/update [post]
|
|
|
|
// @x-panel-log {"bodyKeys":[],"paramKeys":[],"BeforeFunctions":[],"formatZH":"更新 docker daemon.json 日志配置","formatEN":"Updated the docker daemon.json log option"}
|
|
|
|
// @x-panel-log {"bodyKeys":[],"paramKeys":[],"BeforeFunctions":[],"formatZH":"更新日志配置","formatEN":"Updated the log option"}
|
|
|
|
func (b *BaseApi) UpdateLogOption(c *gin.Context) {
|
|
|
|
func (b *BaseApi) UpdateLogOption(c *gin.Context) {
|
|
|
|
var req dto.LogOption
|
|
|
|
var req dto.LogOption
|
|
|
|
if err := helper.CheckBind(&req, c); err != nil {
|
|
|
|
if err := helper.CheckBind(&req, c); err != nil {
|
|
|
@ -107,7 +107,7 @@ func (b *BaseApi) UpdateLogOption(c *gin.Context) {
|
|
|
|
// @Success 200
|
|
|
|
// @Success 200
|
|
|
|
// @Security ApiKeyAuth
|
|
|
|
// @Security ApiKeyAuth
|
|
|
|
// @Router /containers/ipv6option/update [post]
|
|
|
|
// @Router /containers/ipv6option/update [post]
|
|
|
|
// @x-panel-log {"bodyKeys":[],"paramKeys":[],"BeforeFunctions":[],"formatZH":"更新 docker daemon.json ipv6 配置","formatEN":"Updated the docker daemon.json ipv6 option"}
|
|
|
|
// @x-panel-log {"bodyKeys":[],"paramKeys":[],"BeforeFunctions":[],"formatZH":"更新 ipv6 配置","formatEN":"Updated the ipv6 option"}
|
|
|
|
func (b *BaseApi) UpdateIpv6Option(c *gin.Context) {
|
|
|
|
func (b *BaseApi) UpdateIpv6Option(c *gin.Context) {
|
|
|
|
var req dto.Ipv6Option
|
|
|
|
var req dto.Ipv6Option
|
|
|
|
if err := helper.CheckBind(&req, c); err != nil {
|
|
|
|
if err := helper.CheckBind(&req, c); err != nil {
|
|
|
@ -130,7 +130,7 @@ func (b *BaseApi) UpdateIpv6Option(c *gin.Context) {
|
|
|
|
// @Success 200
|
|
|
|
// @Success 200
|
|
|
|
// @Security ApiKeyAuth
|
|
|
|
// @Security ApiKeyAuth
|
|
|
|
// @Router /containers/daemonjson/update/byfile [post]
|
|
|
|
// @Router /containers/daemonjson/update/byfile [post]
|
|
|
|
// @x-panel-log {"bodyKeys":[],"paramKeys":[],"BeforeFunctions":[],"formatZH":"更新 docker daemon.json 配置","formatEN":"Updated the docker daemon.json configuration"}
|
|
|
|
// @x-panel-log {"bodyKeys":[],"paramKeys":[],"BeforeFunctions":[],"formatZH":"更新配置文件","formatEN":"Updated configuration file"}
|
|
|
|
func (b *BaseApi) UpdateDaemonJsonByFile(c *gin.Context) {
|
|
|
|
func (b *BaseApi) UpdateDaemonJsonByFile(c *gin.Context) {
|
|
|
|
var req dto.DaemonJsonUpdateByFile
|
|
|
|
var req dto.DaemonJsonUpdateByFile
|
|
|
|
if err := helper.CheckBindAndValidate(&req, c); err != nil {
|
|
|
|
if err := helper.CheckBindAndValidate(&req, c); err != nil {
|
|
|
|