Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddSession ¶
AddSession appends an additional session to auth.json
func UseSession ¶
func WriteConfig ¶ added in v0.2.0
WriteConfig writes session data to auth.json
Types ¶
type Config ¶
type Config []Session
Config stores all logged in sessions
func ReadConfig ¶ added in v0.2.0
ReadConfig loads sessions from auth.json
type Session ¶
type Session struct {
Token string `json:"token"`
Email string `json:"email"`
Default bool `json:"default"`
Alias string `json:"alias"`
LoginAt *time.Time `json:"login_at,omitempty"`
LastUsedAt *time.Time `json:"last_used_at,omitempty"`
}
Session stores user credentials
func AllSessions ¶ added in v0.2.0
func CurrentSession ¶
func RemoveSession ¶
Click to show internal directories.
Click to hide internal directories.