mirror of
https://github.com/lorsanstand/HomeOps-Hub.git
synced 2026-06-19 16:45:15 +03:00
refactor: edit capabilities
This commit is contained in:
@@ -19,6 +19,32 @@ type Capability struct {
|
||||
Version string
|
||||
Name string
|
||||
Reason string
|
||||
Command []CapabilityCommand
|
||||
}
|
||||
|
||||
type CapabilityCommand struct {
|
||||
Name string
|
||||
OptionalArgs []CommandArgs
|
||||
RequiredArgs []CommandArgs
|
||||
Version string
|
||||
Description string
|
||||
TypeOutput string
|
||||
}
|
||||
|
||||
type CommandArgs struct {
|
||||
Name string
|
||||
Type string
|
||||
Description string
|
||||
Default string
|
||||
Enum []string
|
||||
Validation ArgValidation
|
||||
}
|
||||
|
||||
type ArgValidation struct {
|
||||
MinValue int
|
||||
MaxValue int
|
||||
Pattern string
|
||||
AllowedExts []string
|
||||
}
|
||||
|
||||
type RegisterAgentResponse struct {
|
||||
|
||||
Reference in New Issue
Block a user