cmd

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2026 License: MIT Imports: 39 Imported by: 0

Documentation

Overview

Copyright © 2025 NAME HERE <EMAIL ADDRESS>

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

func NewCmdExec

func NewCmdExec() *cobra.Command

func NewCmdIdentity

func NewCmdIdentity() *cobra.Command

func NewCmdIdentityAdd

func NewCmdIdentityAdd() *cobra.Command

func NewCmdIdentityDelete

func NewCmdIdentityDelete() *cobra.Command

func NewCmdIdentityEdit

func NewCmdIdentityEdit() *cobra.Command

func NewCmdIdentityList

func NewCmdIdentityList() *cobra.Command

func NewCmdMcp

func NewCmdMcp() *cobra.Command

func NewCmdScp

func NewCmdScp() *cobra.Command

func NewCmdSftp

func NewCmdSftp() *cobra.Command

func NewCmdSsh

func NewCmdSsh() *cobra.Command

func NewCmdTui added in v0.3.0

func NewCmdTui() *cobra.Command

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) Complete

func (o *ExecOptions) Complete(cmd *cobra.Command, args []string)

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

func (o *FirewallOptions) RunOnHosts(ctx context.Context, action func(fw firewall.Firewall) (string, error)) error

type PathInfo

type PathInfo struct {
	IsRemote bool
	User     string
	Host     string
	Port     uint16
	Path     string
}

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) Complete

func (o *ScpOptions) Complete(cmd *cobra.Command, args []string)

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) Complete

func (o *SshOptions) Complete(cmd *cobra.Command, args []string)

func (*SshOptions) Run

func (o *SshOptions) Run() error

func (*SshOptions) Validate

func (o *SshOptions) Validate() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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