MCPcopy
hub / github.com/ContainerSSH/ContainerSSH / validate

Method validate

internal/authintegration/handler.go:28–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26)
27
28func (behavior Behavior) validate() bool {
29 switch behavior {
30 case BehaviorNoPassthrough:
31 return true
32 case BehaviorPassthroughOnFailure:
33 return true
34 case BehaviorPassthroughOnSuccess:
35 return true
36 case BehaviorPassthroughOnUnavailable:
37 return true
38 default:
39 return false
40 }
41}
42
43type handler struct {
44 backend sshserver.Handler

Callers 1

NewFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected