Documentation
¶
Overview ¶
Package connection selects local, SSH or WebSocket transports and reopens read handles. It never retries or replays filesystem mutations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProfilePath ¶
func ProfilePath() string
func SaveProfiles ¶
Types ¶
type File ¶
type File struct {
Path string
Mode protocol.DocumentMode
}
type Profile ¶
type Profile struct {
WebSocket remote.WebSocketTarget `json:"websocket,omitzero"`
Name string `json:"name"`
Directory string `json:"directory,omitempty"`
SSH remote.Target `json:"ssh"`
}
func LoadProfiles ¶
func (Profile) Endpoint ¶
Endpoint identifies a connection without allocating or retaining its token.
func (Profile) Namespace ¶
Namespace prevents identical remote and local paths sharing history entries.
type RestoredProject ¶
type RestoredProject struct {
Err error
Workspace protocol.Workspace
Files []RestoredFile
}