ssh

package
v0.15.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: Apache-2.0 Imports: 6 Imported by: 7

Documentation

Overview

Package ssh provides connhelper for ssh://<SSH URL>

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Helper

func Helper(u *url.URL) (*connhelper.ConnectionHelper, error)

Helper returns helper for connecting through an SSH URL.

Types

type Spec

type Spec struct {
	User   string
	Host   string
	Port   string
	Socket string
}

Spec

func SpecFromURL

func SpecFromURL(u *url.URL) (*Spec, error)

SpecFromURL creates Spec from URL. URL is like ssh://<user>@host:<port> Only <host> part is mandatory.

Jump to

Keyboard shortcuts

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