Documentation ¶
Index ¶
Constants ¶
View Source
const ( NocauthUser = "NOCAUTH_USER" NocauthHost = "NOCAUTH_HOST" NocauthPort = "NOCAUTH_PORT" )
Variables ¶
This section is empty.
Functions ¶
func HandleSession ¶
func HandleSession(sc *sessionConfig)
Types ¶
type ACLValidator ¶
type ACLValidator struct {
ACLConfig
}
func NewACLValidator ¶
func NewACLValidator(conf ACLConfig) *ACLValidator
func (*ACLValidator) CheckForward ¶
func (v *ACLValidator) CheckForward(user, host string, port uint16) bool
func (*ACLValidator) CheckSession ¶
func (v *ACLValidator) CheckSession(user, host string, port uint16) bool
type ClientAgent ¶
type ClientAgent struct { *sync.Mutex *zap.SugaredLogger // contains filtered or unexported fields }
func (*ClientAgent) Close ¶
func (ca *ClientAgent) Close() error
func (*ClientAgent) GetAuth ¶
func (ca *ClientAgent) GetAuth() (am ssh.AuthMethod, err error)
type Config ¶
type Config struct { InetDStyle bool `yaml:"inetd_style"` HostKey string `yaml:"host_key"` ConnectTimeoutSec uint `yaml:"connect_timeout"` ConnectTimeout time.Duration `yaml:"-"` LogFormat string `yaml:"log_format"` LogFolder string `yaml:"log_folder"` CAKeys string `yaml:"ca_keys"` ACL ACLConfig }
noinspection GoStructTag
func ReadConfig ¶
type CriticalError ¶
type CriticalError struct { // Err stores actual error Err error }
TODO: check if this is needed CriticalError represents critical bastion child error
func NewCritical ¶
func NewCritical(err error) CriticalError
NewCriticalError returns new critical error
type Server ¶
type Server struct { Conf Config *zap.SugaredLogger // contains filtered or unexported fields }
Server implements SSH server that client connects to
Click to show internal directories.
Click to hide internal directories.