connect

package
v0.0.0-...-d97fc64 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(e error)

func Connect

func Connect(host, user, keyfile string) (*ssh.Client, *ssh.Session, error)

func ParseArgs

func ParseArgs() string

func ProbeHandler

func ProbeHandler(w http.ResponseWriter, r *http.Request)

func SoftCheck

func SoftCheck(e error) bool

Types

type Config

type Config struct {
	Script      string              `yaml:"script"`
	Credentials []*CredentialConfig `yaml:"credentials"`
}

func ParseConfig

func ParseConfig(c string) Config

type CredentialConfig

type CredentialConfig struct {
	Host    string `yaml:"host"`
	User    string `yaml:"user"`
	KeyFile string `yaml:"keyfile"`
}

type Result

type Result struct {
	Config *CredentialConfig
	Output string
	Loads  map[string]string
}

Jump to

Keyboard shortcuts

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