clientconfig

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientConfig

type ClientConfig struct {
	User                   string   `regex:".*"`
	HostAddress            string   `regex:"([-.\\da-zA-Z]+)|(\\d+-[\\d:A-Fa-f]+,\\[[^\\]]+\\])"`
	Port                   string   `regex:"0*([0-5]?\\d{0,4}|6([0-4]\\d{3}|5([0-4]\\d{2}|5([0-2]\\d|3[0-5]))))"`
	PasswordAuthentication string   `regex:"(yes|no)"`
	PubkeyAuthentication   string   `regex:"(yes|no)"`
	StrictHostKeyChecking  string   `regex:"(yes|no|ask)"`
	IdentityFile           []string `regex:".*"`
	LocalForward           string   `regex:".*"`
	RemoteForward          string   `regex:".*"`
	UserKnownHostsFile     string   `regex:".*"`
	ProxyCommand           string   `regex:".*"`
}

ClientConfig is a struct containing configuration for the client.

func Create

func Create() *ClientConfig

Create creates a new ClientConfig with the default values.

Jump to

Keyboard shortcuts

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