sshconnector

package
v0.0.0-...-8684de4 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDirectSSHConnector

func NewDirectSSHConnector() *directSSHConnector

func NewPodSSHConnector

func NewPodSSHConnector(kubeconfig string, opts ...PodSSHConnectorOption) (*podSSHConnector, error)

Types

type PodSSHConnectorOption

type PodSSHConnectorOption func(*podSSHConnector)

func NamespaceOption

func NamespaceOption(namespace string) PodSSHConnectorOption

func NodeNameOption

func NodeNameOption(name string) PodSSHConnectorOption

type SSHConnector

type SSHConnector interface {
	Connect(IPAddress string, port int, username, sshPrivateKey string) error
	Cleanup()
	Shutdown()
}

Jump to

Keyboard shortcuts

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