launcher

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: CC0-1.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type SSHTunnel

type SSHTunnel struct {
	LocalPort int
	// contains filtered or unexported fields
}

SSHTunnel represents an underlying SSH tunnel process. The struct should be created via NewSSHTunnel().

func NewSSHTunnel

func NewSSHTunnel(creds models.Credentials, appName string) SSHTunnel

NewSSHTunnel prepares the underlying Cloud Foundry CLI process for creating an SSH tunnel to a service instance.

func (*SSHTunnel) Close

func (t *SSHTunnel) Close() error

Close will terminate the underlying SSH tunnel process.

func (*SSHTunnel) Open

func (t *SSHTunnel) Open() (err error)

Open starts the underlying SSH tunnel process.

func (*SSHTunnel) Wait

func (t *SSHTunnel) Wait() error

Wait will block until the SSH tunnel is closed, either intentionally or not.

Jump to

Keyboard shortcuts

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