commands

package
v2.16.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2023 License: MIT Imports: 39 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:              "assh",
	Short:            "assh - advanced ssh config",
	Version:          version.Version + " (" + version.VcsRef + ")",
	TraverseChildren: true,
}

RootCmd is the root cobra command containing all commands for assh.

Functions

This section is empty.

Types

type ConnectHookArgs

type ConnectHookArgs struct {
	Host  *config.Host
	Stats *ConnectionStats
	Error string
}

ConnectHookArgs is the struture sent to the hooks and used in Go templates by the hook drivers

func (ConnectHookArgs) String

func (c ConnectHookArgs) String() string

type ConnectionStats

type ConnectionStats struct {
	WrittenBytes            uint64
	WrittenBytesHuman       string
	CreatedAt               time.Time
	ConnectedAt             time.Time
	DisconnectedAt          time.Time
	ConnectionDuration      time.Duration
	ConnectionDurationHuman string
	AverageSpeed            float64
	AverageSpeedHuman       string
}

ConnectionStats contains network and timing informations about a connection

func (*ConnectionStats) String

func (c *ConnectionStats) String() string

Jump to

Keyboard shortcuts

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