Documentation ¶
Index ¶
- Variables
- func CreateDatabase(dir DataDir) (db *gorm.DB, err error)
- func Debug(name string) bool
- func InitializeUsers(log *zap.SugaredLogger, dir DataDir, _db *gorm.DB) (err error)
- func InstallAppToRouter(a *App, ur ufx.Router)
- func InstallSignersToRouter(ur ufx.Router, signers *Signers)
- func InstallStaticToRouter(ur ufx.Router)
- func PipeSSH(log *zap.SugaredLogger, target *ssh.Client, userConn *ssh.ServerConn, ...)
- type App
- type AppOptions
- type DataDir
- type SSHPrivateKeyGenerator
- type SSHServer
- func (s *SSHServer) AuthLogCallback(conn ssh.ConnMetadata, method string, err error)
- func (s *SSHServer) BannerCallback(conn ssh.ConnMetadata) string
- func (s *SSHServer) HandleServerConn(conn net.Conn)
- func (s *SSHServer) ListenAndServe() (err error)
- func (s *SSHServer) PublicKeyCallback(conn ssh.ConnMetadata, _key ssh.PublicKey) (perm *ssh.Permissions, err error)
- func (s *SSHServer) Shutdown(ctx context.Context) (err error)
- type SSHServerOptions
- type Signers
Constants ¶
This section is empty.
Variables ¶
View Source
var STATIC embed.FS
Functions ¶
func InitializeUsers ¶
func InstallAppToRouter ¶
func InstallSignersToRouter ¶
func InstallStaticToRouter ¶
func PipeSSH ¶
func PipeSSH(log *zap.SugaredLogger, target *ssh.Client, userConn *ssh.ServerConn, chUserNewChannel <-chan ssh.NewChannel, chUserRequest <-chan *ssh.Request)
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func CreateApp ¶
func CreateApp(opts AppOptions) (app *App, err error)
type SSHPrivateKeyGenerator ¶
type SSHPrivateKeyGenerator = func() (key crypto.PrivateKey, err error)
type SSHServer ¶
type SSHServer struct {
// contains filtered or unexported fields
}
func CreateSSHServer ¶
func CreateSSHServer(opts SSHServerOptions) (s *SSHServer, err error)
func (*SSHServer) AuthLogCallback ¶
func (s *SSHServer) AuthLogCallback(conn ssh.ConnMetadata, method string, err error)
func (*SSHServer) BannerCallback ¶
func (s *SSHServer) BannerCallback(conn ssh.ConnMetadata) string
func (*SSHServer) HandleServerConn ¶
func (*SSHServer) ListenAndServe ¶
func (*SSHServer) PublicKeyCallback ¶
func (s *SSHServer) PublicKeyCallback(conn ssh.ConnMetadata, _key ssh.PublicKey) (perm *ssh.Permissions, err error)
type SSHServerOptions ¶
Click to show internal directories.
Click to hide internal directories.