history

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddHistory

func AddHistory(c config.SSHConfig)

func AddHistoryFromArgs

func AddHistoryFromArgs(args []string)

func Print

func Print()

func ReadableTime added in v0.1.4

func ReadableTime(d time.Duration) string

func RemoveByIP added in v0.1.4

func RemoveByIP(row table.Row)

Types

type SSHHistory

type SSHHistory struct {
	Connection config.SSHConfig `json:"connection"`
	Date       time.Time        `json:"date"`
}

func Fetch

func Fetch(file []byte) ([]SSHHistory, error)

func FetchWithDefaultFile

func FetchWithDefaultFile() ([]SSHHistory, error)

Jump to

Keyboard shortcuts

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