Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandValidator ¶
type CommandValidator struct{}
CommandValidator structure
func (CommandValidator) AddWhiteCommand ¶
func (CommandValidator) AddWhiteCommand(serviceInfo configuremgrtypes.ServiceInfo) error
AddWhiteCommand adds a command to support servicelist
func (CommandValidator) CheckCommand ¶
func (CommandValidator) CheckCommand(serviceName string, command []string) error
CheckCommand checks the formatting of the command, the presence of injection operators and in servicelist
func (CommandValidator) GetCommand ¶
func (CommandValidator) GetCommand(serviceName string) (string, error)
GetCommand gets a service name
type ICommandValidator ¶
type ICommandValidator interface { AddWhiteCommand(configuremgrtypes.ServiceInfo) error GetCommand(serviceName string) (string, error) CheckCommand(command []string) error }
ICommandValidator provides interfaces for the commandvalidator
Click to show internal directories.
Click to hide internal directories.