Documentation ¶
Index ¶
- Variables
- func ConfigFilePath(homeDir string) string
- func ConfigIsIncluded(homeDir string) (bool, error)
- func DefaultConfigFilePath(homeDir string) string
- func Generate(hosts []Host) ([]byte, error)
- func IncludeConfigFile(homeDir string) error
- func Save(homeDir string, hosts []Host) error
- type BastionHost
- type Host
- type SimpleHost
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrFileNotFound = errors.New("file not found")
)
Functions ¶
func ConfigFilePath ¶
ConfigFilePath returns the path of the generated file should be ~/.ssh/scaleway.config
func ConfigIsIncluded ¶
ConfigIsIncluded checks that ssh config file is included in user's .ssh/config Default config file ~/.ssh/config should start with "Include scaleway.config"
func DefaultConfigFilePath ¶
DefaultConfigFilePath returns the default ssh config file path should be ~/.ssh/config
func IncludeConfigFile ¶
IncludeConfigFile edit default ssh config to include this package generated file ~/.ssh/config will be prepended with "Include scaleway.config"
Types ¶
type BastionHost ¶
type BastionHost struct { Name string Address string Port uint32 Hosts []SimpleHost }
func (BastionHost) Config ¶
func (b BastionHost) Config() string
type SimpleHost ¶
func (SimpleHost) Config ¶
func (h SimpleHost) Config() string
Click to show internal directories.
Click to hide internal directories.