config

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfigFile

func GetConfigFile() string

func GetSshDir added in v0.1.3

func GetSshDir() string

func HomeDir added in v0.1.4

func HomeDir() string

func Print

func Print()

Types

type SSHConfig

type SSHConfig struct {
	Name string `json:"name"`
	Host string `json:"host"`
	Port string `json:"port"`
	User string `json:"user"`
	Key  string `json:"key"`
}

func GetConfig

func GetConfig(name string) (SSHConfig, error)

func Parse

func Parse(configFile string) ([]SSHConfig, error)

func ParseInclude added in v0.1.3

func ParseInclude(search string, path string) ([]SSHConfig, error)

func ParseWithSearch

func ParseWithSearch(search string, configFile string) ([]SSHConfig, error)

Jump to

Keyboard shortcuts

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