MCPcopy Index your code
hub / github.com/ContainerSSH/ContainerSSH / Validate

Method Validate

config/auth.go:411–419  ·  view source on GitHub ↗

Validate validates the authentication client configuration.

()

Source from the content-addressed store, hash-verified

409
410// Validate validates the authentication client configuration.
411func (c *AuthWebhookClientConfig) Validate() error {
412 if c.AuthTimeout < 100*time.Millisecond {
413 return newError("timeout", "auth timeout value %s is too low, must be at least 100ms", c.AuthTimeout.String())
414 }
415 if err := c.HTTPClientConfiguration.Validate(); err != nil {
416 return err
417 }
418 return nil
419}
420
421// endregion
422

Callers

nothing calls this directly

Calls 3

newErrorFunction · 0.85
StringMethod · 0.65
ValidateMethod · 0.65

Tested by

no test coverage detected