Documentation ¶
Index ¶
- Constants
- type Entry
- func (e *Entry) AuthMethods(ctx context.Context) ([]ssh.AuthMethod, error)
- func (e *Entry) Copy() (*Entry, error)
- func (e *Entry) GenSSHConfig(ctx context.Context) (*ssh.ClientConfig, error)
- func (e *Entry) JSON() ([]byte, error)
- func (e *Entry) Mask()
- func (e *Entry) String() string
- func (e *Entry) Tidy() error
Constants ¶
View Source
const ( SourceSSHConfig = "ssh_config" SourceSSXStore = "ssx_store" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Entry struct { ID uint64 `json:"id"` Host string `json:"host"` User string `json:"user"` Port string `json:"port"` VisitCount int `json:"visit_count"` // Perhaps I will support sorting by VisitCount in the future KeyPath string `json:"key_path"` Passphrase string `json:"passphrase"` Password string `json:"password"` Tags []string `json:"tags"` Source string `json:"source"` // Data source, used to distinguish that it is from ssx stored or local ssh configuration CreateAt time.Time `json:"create_at"` UpdateAt time.Time `json:"update_at"` }
Entry represent a target server
func (*Entry) AuthMethods ¶
AuthMethods all possible auth methods
func (*Entry) GenSSHConfig ¶
Click to show internal directories.
Click to hide internal directories.