commandvalidator

package
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 29, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL