PatchAssistant is model to contain assistant patching paylaod nolint:lll
| 99 | // PatchAssistant is model to contain assistant patching paylaod |
| 100 | // nolint:lll |
| 101 | type PatchAssistant struct { |
| 102 | Action string `form:"action" json:"action" validate:"required,oneof=stop input" enums:"stop,input" default:"stop"` |
| 103 | Input *string `form:"input,omitempty" json:"input,omitempty" validate:"required_if=Action input" example:"user input for waiting assistant"` |
| 104 | UseAgents bool `form:"use_agents" json:"use_agents" validate:"omitempty" example:"true"` |
| 105 | ResourceIDs []uint64 `form:"resource_ids,omitempty" json:"resource_ids,omitempty" validate:"omitempty" swaggertype:"array,integer"` |
| 106 | } |
| 107 | |
| 108 | // Valid is function to control input/output data |
| 109 | func (pa PatchAssistant) Valid() error { |
nothing calls this directly
no outgoing calls
no test coverage detected