Enhance instance creation with name validation and security checks

This commit is contained in:
2025-07-19 16:20:44 +02:00
parent 37107f76d5
commit dab23e487b
5 changed files with 146 additions and 24 deletions

View File

@@ -33,8 +33,6 @@ func (d Duration) ToDuration() time.Duration {
}
type InstanceOptions struct {
Name string `json:"name,omitempty"` // Display name
// Auto restart
AutoRestart bool `json:"auto_restart,omitempty"`
MaxRestarts int `json:"max_restarts,omitempty"`