NewValidator creates a new command validator
(config Config)
| 21 | |
| 22 | // NewValidator creates a new command validator |
| 23 | func NewValidator(config Config) *Validator { |
| 24 | return &Validator{ |
| 25 | config: config, |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | // ValidateCommand checks if a command is allowed for the given target type |
| 30 | func (v *Validator) ValidateCommand(targetType TargetType, command string) error { |
no outgoing calls