Documentation
¶
Overview ¶
Package nexssflow ships the NFlow bundle for local profile-based SSH commands and SFTP transfers.
Typical use:
@require github.com/nexssp/ssh/nexssflow v0.1.0 { profiles_file: "~/.config/nexss/ssh/profiles.yml" }
{ profile: "staging", command: "uname -s" } -> ssh.run
Index ¶
Constants ¶
const ID = "ssh"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
ProfilesFile string `nflow:"profiles_file"`
Timeout time.Duration `nflow:"timeout" default:"2m"`
MaxBytes int64 `nflow:"max_bytes" default:"268435456"`
}
Config controls local profile loading and operation limits for this bundle.
type RunRequest ¶
RunRequest selects only a local profile and supplies the remote command. Host, username, identity, and host-key trust are deliberately not inputs.
type TransferRequest ¶
type TransferRequest struct {
Profile string `json:"profile"`
LocalPath string `json:"local_path"`
RemotePath string `json:"remote_path"`
}
TransferRequest selects a local profile and the two file paths for one SFTP transfer.