Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Save ¶
func Save(dir string, s *SessionData) error
func UpdateStatus ¶
Types ¶
type SessionData ¶
type SessionData struct {
ID string `json:"id"`
AgentID string `json:"agent_id"`
AgentName string `json:"agent_name"`
ProjectDir string `json:"project_dir"`
Port int `json:"port"`
CreatedAt string `json:"created_at"`
Status string `json:"status"`
Error string `json:"error,omitempty"`
}
func List ¶
func List(dir string) ([]SessionData, error)
func Load ¶
func Load(dir, sessionID string) (*SessionData, error)
Click to show internal directories.
Click to hide internal directories.