Help us shape the future of Go! Take the 2026 Go Developer Survey

ssh

package
v1.12.2 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IdentityFilePathFlag, _ = "identity-file", "i"
)

Variables

This section is empty.

Functions

func AddCommonSSHFlags added in v1.8.0

func AddCommonSSHFlags(flagset *pflag.FlagSet, opts *SSHOptions)

func NewCommand

func NewCommand() *cobra.Command

func PrepareCommand

func PrepareCommand(cmd *cobra.Command, defaultNamespace string, opts *SSHOptions, args []string) (namespace, name string, err error)

func RunLocalClient

func RunLocalClient(cmd *cobra.Command, namespace, name string, options *SSHOptions, clientArgs []string) error

func WarnDeprecatedSSHFlags added in v1.11.1

func WarnDeprecatedSSHFlags(cmd *cobra.Command)

Types

type SSH

type SSH struct {
	// contains filtered or unexported fields
}

func (*SSH) Run

func (o *SSH) Run(cmd *cobra.Command, args []string) error

type SSHOptions

type SSHOptions struct {
	SSHPort                    int
	SSHUsername                string
	IdentityFilePath           string
	IdentityFilePathProvided   bool
	KnownHostsFilePath         string
	KnownHostsFilePathDefault  string
	KnownHostsFilePathProvided bool
	AdditionalSSHOptions       []string
	AdditionalSSHLocalOptions  []string
	WrapLocalSSH               bool
	LocalClientName            string
}

func DefaultSSHOptions

func DefaultSSHOptions() SSHOptions

func (*SSHOptions) ResolvePaths added in v1.8.0

func (s *SSHOptions) ResolvePaths() error

Jump to

Keyboard shortcuts

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