Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCredentialsStorageFilePath ¶
func GetCredentialsStorageFilePath() string
Types ¶
type Credentials ¶
type Credentials struct { // URL of the groshi server. URL string `json:"url"` // Token for authorizing at the server. Token string `json:"token"` }
func New ¶
func New(url string, jwt string) *Credentials
func ReadFromDefaultPath ¶
func ReadFromDefaultPath() (*Credentials, error)
func ReadFromPath ¶
func ReadFromPath(filepath string) (*Credentials, error)
func (*Credentials) WriteToFile ¶
func (c *Credentials) WriteToFile(filepath string) error
Click to show internal directories.
Click to hide internal directories.