Documentation ¶
Overview ¶
Package dao represents the Data Access Object Pattern or DAO pattern is used to separate low level data accessing API or operations from high level business services
Index ¶
- func GetCredentialProfile(name string) (model.CredentialProfile, error)
- func GetCredentials() (model.Credentials, error)
- func GetOrganization(name string) string
- func GetOrganizationToken(name string) string
- func GetTeamToken(name string) string
- func GetUserToken(name string) string
- func SaveCredentials(credentials model.Credentials) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCredentialProfile ¶
func GetCredentialProfile(name string) (model.CredentialProfile, error)
GetCredentialProfile returns credentials of a profile
func GetCredentials ¶
func GetCredentials() (model.Credentials, error)
GetCredentials read the current credentials file and return its model
func GetOrganization ¶
GetOrganization return the team token
func GetOrganizationToken ¶
GetOrganizationToken return the organization token from credentials file
func SaveCredentials ¶
func SaveCredentials(credentials model.Credentials) error
SaveCredentials saves the given credential onto the credentials file
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.