Versions in this module Expand all Collapse all v0 v0.0.3 Oct 2, 2024 Changes in this version + type AuthInfo struct + Password string + PubKeyAlgorithm string + PubKeyFingerprint string + SignedData string + User string + func GetAuthInfoFromContext(ctx context.Context) (*AuthInfo, error) + type Server struct + SSHAuthenticator *authenicate.SSHAuthenticator + WhiteList map[string]bool + func NewServer(whiteList map[string]bool, sshAuthenticator *authenicate.SSHAuthenticator) *Server + func (s *Server) AuthenticateStream(srv interface{}, ss grpc.ServerStream, info *grpc.StreamServerInfo, ...) error + func (s *Server) AuthenticateUnary(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, ...) (interface{}, error) + func (s *Server) Close(ctx context.Context, req *pb.CloseRequest) (*pb.CloseResponse, error) + func (s *Server) Connect(ctx context.Context, req *pb.ConnectRequest) (*pb.ConnectResponse, error) + func (s *Server) ExecCommand(ctx context.Context, req *pb.CommandRequest) (*pb.CommandResponse, error) + func (s *Server) FetchFile(ctx context.Context, req *pb.FetchFileRequest) (*pb.FetchFileResponse, error) + func (s *Server) PutFile(ctx context.Context, req *pb.PutFileRequest) (*pb.PutFileResponse, error) + func (s *Server) TransferFile(stream pb.ConnectionService_TransferFileServer) error