Documentation
¶
Index ¶
- func GetRegexMatches(user *config.User) []string
- func ParsePrivateKey(pk []byte, passphrase string, env *config.Env) ssh.Signer
- func RandStringBytesMaskImprSrc(n int) string
- func Serve(addr string, proxyAddr string, env *config.Env)
- func WaitTimeout(group *sync.WaitGroup, timeout time.Duration) bool
- type CASigner
- type ProxyHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRegexMatches ¶
GetRegexMatches will return a slice of all of the matching regexes for a user
func ParsePrivateKey ¶
ParsePrivateKey pareses the PrivateKey into a ssh.Signer and let's it be used by CASigner
func RandStringBytesMaskImprSrc ¶
RandStringBytesMaskImprSrc creates a random string of n length https://stackoverflow.com/questions/22892120/how-to-generate-a-random-string-of-a-fixed-length-in-go/31832326
Types ¶
type CASigner ¶
type CASigner struct { CA ssh.Signer Validity time.Duration Principals []string Permissions []string }
CASigner is the main CASigner object
type ProxyHandler ¶
ProxyHandler is the base handler for an SSH Connection and Proxy
Click to show internal directories.
Click to hide internal directories.