2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-06 01:27:18 +08:00
Files
panel/app/http/requests/plugins/podman/update_registry_config.go
2024-06-11 01:26:34 +08:00

33 lines
768 B
Go

package requests
import (
"github.com/goravel/framework/contracts/http"
"github.com/goravel/framework/contracts/validation"
)
type UpdateRegistryConfig struct {
Config string `form:"config" json:"config"`
}
func (r *UpdateRegistryConfig) Authorize(ctx http.Context) error {
return nil
}
func (r *UpdateRegistryConfig) Rules(ctx http.Context) map[string]string {
return map[string]string{
"config": "required|string",
}
}
func (r *UpdateRegistryConfig) Messages(ctx http.Context) map[string]string {
return map[string]string{}
}
func (r *UpdateRegistryConfig) Attributes(ctx http.Context) map[string]string {
return map[string]string{}
}
func (r *UpdateRegistryConfig) PrepareForValidation(ctx http.Context, data validation.Data) error {
return nil
}