portal

package
v0.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package portal provides SSH portals to applications.

Index

Constants

View Source
const (
	// ListenTimeout is the maximum time to start listening on an address.
	ListenTimeout = 1 * time.Second

	// IdleTimeout is the maximum time for a connection to be inactive.
	IdleTimeout = 1 * time.Minute
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Portal

type Portal struct {
	Name    string
	Address string
	Command []string
	Server  *ssh.Server
}

Portal is an SSH portal to an application.

func New

func New(name string, address string, command []string) (*Portal, error)

New opens an SSH portal to an application.

func (*Portal) Close

func (p *Portal) Close()

Close closes the portal immediately.

func (*Portal) Shutdown

func (p *Portal) Shutdown()

Shutdown closes the portal without interrupting active connections.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL