Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SIGSTRING = map[syscall.Signal]string{ syscall.SIGABRT: "ABRT", syscall.SIGALRM: "ALRM", syscall.SIGFPE: "FPE", syscall.SIGHUP: "HUP", syscall.SIGILL: "ILL", syscall.SIGINT: "INT", syscall.SIGKILL: "KILL", syscall.SIGPIPE: "PIPE", syscall.SIGQUIT: "QUIT", syscall.SIGSEGV: "SEGV", syscall.SIGTERM: "TERM", syscall.SIGUSR1: "USR1", syscall.SIGUSR2: "USR2", }
Based on what's handled in https://github.com/golang/crypto/blob/master/ssh/session.go#L21
Functions ¶
func ConfigureSSHClient ¶
func ConfigureSSHClient(privateKeyPath string) (*ssh.ClientConfig, error)
func ConfigureSSHServer ¶
Types ¶
type Agent ¶
type Agent struct { PluginPaths []string Listen net.Listener // contains filtered or unexported fields }
func (*Agent) ReadConfig ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(config *ssh.ClientConfig) *Client
type Request ¶
type Request struct { JSON string Operation string `json:"operation"` TargetPlugin string `json:"target_plugin"` TargetEndpoint string `json:"target_endpoint"` StorePlugin string `json:"store_plugin"` StoreEndpoint string `json:"store_endpoint"` RestoreKey string `json:"restore_key"` }
func ParseRequestValue ¶
func (*Request) ResolvePaths ¶
Click to show internal directories.
Click to hide internal directories.