file

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ManagedByComment = "# Managed by lazyssh"
	DefaultPort      = 22
)

Variables

This section is empty.

Functions

func NewServerRepo

func NewServerRepo(logger *zap.SugaredLogger, sshPath, metaDataPath string) *serverRepo

Types

type SSHConfigParser

type SSHConfigParser struct{}

func (*SSHConfigParser) Parse

func (p *SSHConfigParser) Parse(reader io.Reader) ([]domain.Server, error)

type SSHConfigWriter

type SSHConfigWriter struct{}

func (*SSHConfigWriter) Write

func (w *SSHConfigWriter) Write(writer io.Writer, servers []domain.Server) error

type ServerMetadata

type ServerMetadata struct {
	Tags     []string `json:"tags,omitempty"`
	LastSeen string   `json:"last_seen,omitempty"`
	PinnedAt string   `json:"pinned_at,omitempty"`
	SSHCount int      `json:"ssh_count,omitempty"`
}

Jump to

Keyboard shortcuts

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