Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsToolSupported ¶
IsToolSupported checks if a tool is supported
Types ¶
type ConfigData ¶
type ConfigData struct {
// Map of additional tools enabled
AdditionalTools map[string]bool
// Command execution timeout in seconds
Timeout int
// Security configuration
SecurityConfig *security.SecurityConfig
// Command-line specific options
Transport string
Host string
Port int
AccessLevel string
AllowNamespaces string
}
ConfigData holds the global configuration
func NewConfig ¶
func NewConfig() *ConfigData
NewConfig creates and returns a new configuration instance
func (*ConfigData) ParseFlags ¶
func (cfg *ConfigData) ParseFlags() error
ParseFlags parses command line arguments and updates the configuration
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
Validator handles all validation logic for MCP Kubernetes
func NewValidator ¶
func NewValidator(cfg *ConfigData) *Validator
NewValidator creates a new validator instance
func (*Validator) PrintErrors ¶
func (v *Validator) PrintErrors()
PrintErrors prints all validation errors to stdout
Click to show internal directories.
Click to hide internal directories.