Documentation ¶
Overview ¶
Package userconfig provides user machine-level configuration.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { // Team is the active team. Team string `json:"team"` // Teams is the user's active teams. Teams map[string]*Team `json:"teams"` }
Config is the user configuration.
func (*Config) Authenticated ¶
Authenticated returns true if the user has an active team.
func (*Config) GetActiveTeam ¶
GetActiveTeam returns the active team.
type Team ¶
type Team struct { // ID is the team identifier. ID string `json:"team"` // Email is the user's email. Email string `json:"email"` // Token is the access token. Token string `json:"token"` }
Team is the user configuration for a given team.
func (*Team) IsPersonal ¶
IsPersonal returns true if it is a personal team.
Click to show internal directories.
Click to hide internal directories.