Documentation ¶
Index ¶
- Constants
- func AllowSSH(args []string, spaceFactory space.SpaceFactory) error
- func DisableSSH(args []string, appFactory app.AppFactory) error
- func DisallowSSH(args []string, spaceFactory space.SpaceFactory) error
- func EnableSSH(args []string, appFactory app.AppFactory) error
- func SSHAllowed(args []string, spaceFactory space.SpaceFactory, output io.Writer) error
- func SSHEnabled(args []string, appFactory app.AppFactory, output io.Writer) error
- type ListenerFactory
- type SecureClient
- type SecureDialer
- type SecureSession
- type SecureShell
Constants ¶
View Source
const AllowSSHUsage = "cf allow-space-ssh SPACE_NAME"
View Source
const DisableSSHUsage = "cf disable-ssh APP_NAME"
View Source
const DisallowSSHUsage = "cf disallow-space-ssh SPACE_NAME"
View Source
const EnableSSHUsage = "cf enable-ssh APP_NAME"
View Source
const SSHAllowedUsage = "cf space-ssh-allowed SPACE_NAME"
View Source
const SSHEnabledUsage = "cf ssh-enabled APP_NAME"
Variables ¶
This section is empty.
Functions ¶
func DisableSSH ¶
func DisableSSH(args []string, appFactory app.AppFactory) error
func DisallowSSH ¶
func DisallowSSH(args []string, spaceFactory space.SpaceFactory) error
func SSHAllowed ¶
func SSHEnabled ¶
Types ¶
type ListenerFactory ¶
func DefaultListenerFactory ¶
func DefaultListenerFactory() ListenerFactory
type SecureClient ¶
type SecureDialer ¶
type SecureDialer interface {
Dial(network, address string, config *ssh.ClientConfig) (SecureClient, error)
}
func DefaultSecureDialer ¶
func DefaultSecureDialer() SecureDialer
type SecureSession ¶
type SecureSession interface { RequestPty(term string, height, width int, termModes ssh.TerminalModes) error SendRequest(name string, wantReply bool, payload []byte) (bool, error) StdinPipe() (io.WriteCloser, error) StdoutPipe() (io.Reader, error) StderrPipe() (io.Reader, error) Start(command string) error Shell() error Wait() error Close() error }
type SecureShell ¶
type SecureShell interface { Connect(opts *options.SSHOptions) error InteractiveSession() error LocalPortForward() error Wait() error Close() error }
func NewSecureShell ¶
func NewSecureShell( secureDialer SecureDialer, terminalHelper terminal.TerminalHelper, listenerFactory ListenerFactory, keepAliveInterval time.Duration, appFactory app.AppFactory, infoFactory info.InfoFactory, credFactory credential.CredentialFactory, ) SecureShell
Source Files ¶
Click to show internal directories.
Click to hide internal directories.