securecrt

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrFailedToExpandHomeDir   = errors.New("unable to expand user home dir")
	ErrFailedToLoadConfig      = errors.New("failed to get securecrt config")
	ErrFailedToLoadCredentials = errors.New("failed to load default credentials")
	ErrFailedToCreateSession   = errors.New("failed to create session")
	ErrFailedToReadSession     = errors.New("failed to read session")
)

Functions

This section is empty.

Types

type SecureCRT

type SecureCRT struct {
	// contains filtered or unexported fields
}

func New

func New(rootPath string) (*SecureCRT, error)

func (*SecureCRT) GetSessionPath added in v0.2.0

func (scrt *SecureCRT) GetSessionPath() string

func (*SecureCRT) GetSessions added in v0.2.0

func (scrt *SecureCRT) GetSessions() ([]*SecureCRTSession, error)

func (*SecureCRT) RemoveSessions

func (scrt *SecureCRT) RemoveSessions(sessions []*SecureCRTSession) error

func (*SecureCRT) WriteSession

func (scrt *SecureCRT) WriteSession(session *SecureCRTSession) error

type SecureCRTSession added in v0.2.0

type SecureCRTSession struct {
	DeviceName     string
	Path           string
	IP             string `session:"Hostname" type:"S"`
	Protocol       string `session:"Protocol Name" type:"S"`
	Description    string `session:"Description" type:"Z"`
	CredentialName string `session:"Credential Title" type:"S"`
	Firewall       string `session:"Firewall Name" type:"S"`
	// contains filtered or unexported fields
}

func NewSession added in v0.2.0

func NewSession(fullPath string) *SecureCRTSession

Jump to

Keyboard shortcuts

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