Documentation
¶
Overview ¶
Copyright © 2025 NAME HERE <EMAIL ADDRESS>
Index ¶
- func Execute()
- func NewCmdExec() *cobra.Command
- func NewCmdIdentity() *cobra.Command
- func NewCmdIdentityAdd() *cobra.Command
- func NewCmdIdentityDelete() *cobra.Command
- func NewCmdIdentityEdit() *cobra.Command
- func NewCmdIdentityList() *cobra.Command
- func NewCmdMcp() *cobra.Command
- func NewCmdScp() *cobra.Command
- func NewCmdSftp() *cobra.Command
- func NewCmdSsh() *cobra.Command
- func NewCmdTui() *cobra.Command
- type ExecOptions
- type FirewallOptions
- type PathInfo
- type ScpOptions
- type SftpOptions
- type SshOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCmdExec ¶
func NewCmdIdentity ¶
func NewCmdIdentityAdd ¶
func NewCmdIdentityDelete ¶
func NewCmdIdentityEdit ¶
func NewCmdIdentityList ¶
func NewCmdSftp ¶
Types ¶
type ExecOptions ¶
type ExecOptions struct {
SshOptions
HostFile string
ShellFile string
Command string
Tag string
TaskCount int
SuPwd string
}
func NewExecOptions ¶
func NewExecOptions() *ExecOptions
func (*ExecOptions) Run ¶
func (o *ExecOptions) Run() error
func (*ExecOptions) Validate ¶
func (o *ExecOptions) Validate() error
type FirewallOptions ¶
type FirewallOptions struct {
SshOptions
HostFile string
Protocol string
Reload bool
Remove bool
Zone string
Action firewall.Action
TaskCount int
}
func NewFirewallOptions ¶
func NewFirewallOptions() *FirewallOptions
func (*FirewallOptions) RunOnHosts ¶
type ScpOptions ¶
type ScpOptions struct {
SshOptions
Recursive bool
Progress bool
Force bool
TaskCount int
ThreadCount int
Source string
Dest string
HostFile string
Tag string
}
func NewScpOptions ¶
func NewScpOptions() *ScpOptions
func (*ScpOptions) Run ¶
func (o *ScpOptions) Run() error
func (*ScpOptions) Validate ¶
func (o *ScpOptions) Validate() error
type SftpOptions ¶
type SftpOptions struct {
SshOptions
// contains filtered or unexported fields
}
func NewSftpOptions ¶
func NewSftpOptions() *SftpOptions
func (*SftpOptions) Run ¶
func (o *SftpOptions) Run() error
type SshOptions ¶
type SshOptions struct {
Host string
Port uint16
User string
Password string
KeyFile string
KeyPass string
Sudo bool
Alias string
JumpHost string
Tags []string
// contains filtered or unexported fields
}
func NewSshOptions ¶
func NewSshOptions() *SshOptions
func (*SshOptions) Run ¶
func (o *SshOptions) Run() error
func (*SshOptions) Validate ¶
func (o *SshOptions) Validate() error
Source Files
¶
Click to show internal directories.
Click to hide internal directories.