ssh

package
v25.0.0-rc.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package ssh provides the connection helper for ssh:// URL.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Spec

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

Spec of SSH URL

func ParseURL

func ParseURL(daemonURL string) (*Spec, error)

ParseURL parses URL

func (*Spec) Args

func (sp *Spec) Args(add ...string) []string

Args returns args except "ssh" itself combined with optional additional command args

Jump to

Keyboard shortcuts

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