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

Method Validate

config/auth.go:366–378  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

364}
365
366func (c GSSAPIAuthConfig) Validate() error {
367 if err := c.Method.Validate(); err != nil {
368 return wrap(err, "method")
369 }
370 switch c.Method {
371 case GSSAPIAuthMethodDisabled:
372 return nil
373 case GSSAPIAuthMethodKerberos:
374 return wrap(c.Kerberos.Validate(), "kerberos")
375 default:
376 return newError("method", "BUG: unsupported GSSAPI authentication method: %s", c.Method)
377 }
378}
379
380// GSSAPIAuthMethod provides the methods usable for GSSAPI authentication.
381type GSSAPIAuthMethod string

Callers

nothing calls this directly

Calls 3

wrapFunction · 0.85
newErrorFunction · 0.85
ValidateMethod · 0.65

Tested by

no test coverage detected