Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrProfileNotFound is returned when a requested profile file does not exist. ErrProfileNotFound = errors.New("profile not found") // ErrProfileExists is returned when writing an existing profile without force. ErrProfileExists = errors.New("profile already exists") )
Functions ¶
func ProfilePath ¶
ProfilePath returns the JSON file path for a validated profile name.
func ValidateProfileName ¶
ValidateProfileName returns an error unless name is a safe profile identifier.
Types ¶
type Token ¶
type Token struct {
Token string `json:"token"`
APIURL string `json:"api_url"`
AgentName string `json:"agent_name"`
Team string `json:"team"`
TeamSlug string `json:"team_slug"`
CreatedByEmail string `json:"created_by_email"`
CreatedAt string `json:"created_at"`
}
Token stores the persisted credentials and profile metadata.
Click to show internal directories.
Click to hide internal directories.